Skip to content

Commit

Permalink
Fixed a bug when encountering directories named "0"!
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Mar 10, 2005
1 parent 07b9b0b commit 200cc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 200cc91

Please sign in to comment.