From 200cc919dbf5cc4a0de473ffcd8bd7420939fd9e Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 10 Mar 2005 06:02:45 +0000 Subject: [PATCH] Fixed a bug when encountering directories named "0"! --- files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }