summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 3bb10883f..ef82eebcd 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -645,6 +645,7 @@ function utf8_decodeFN($file){
* @return string|false the full page id of the found page, false if any
*/
function page_findnearest($page){
+ if (!$page) return false;
global $ID;
$ns = $ID;