diff --git a/files/index.php b/files/index.php index aa8c0fe1245..127939905c5 100644 --- a/files/index.php +++ b/files/index.php @@ -665,7 +665,7 @@ function displaydir ($wdir) { $fullpath = $basedir.$wdir; $directory = opendir($fullpath); // Find all files - while ($file = readdir($directory)) { + while (($file = readdir($directory)) !== false) { if ($file == "." || $file == "..") { continue; }