diff options
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index c1d329f60b..503ede56ca 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -172,7 +172,7 @@ function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png') $dir = ($dir && substr($dir, -1) != '/') ? $dir . '/' : $dir; $dh = opendir($rootdir . $dir); - while ($fname = readdir($dh)) + while (($fname = readdir($dh)) !== false) { if (is_file("$rootdir$dir$fname")) { |