Fixed a bug when encountering directories named "0"!
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user