summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/pageutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 5ac905c23..20e0fbcb4 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -162,7 +162,7 @@ function metaFiles($id){
$files = array();
$dh = @opendir($dir);
- if(!$dh) return;
+ if(!$dh) return $files;
while(($file = readdir($dh)) !== false){
if(strpos($file,$name.'.') === 0 && !is_dir($dir.$file))
$files[] = $dir.$file;