Bug fix in get_directory_list() for files named 0 :-)

This commit is contained in:
moodler 2004-04-17 14:01:53 +00:00
parent 0043ddbb1a
commit 81fcd0f019

View File

@ -1535,7 +1535,7 @@ function get_directory_list($rootdir, $excludefile="", $descend=true) {
return $dirs;
}
while ($file = readdir($dir)) {
while (false !== ($file = readdir($dir))) {
$firstchar = substr($file, 0, 1);
if ($firstchar == "." or $file == "CVS" or $file == $excludefile) {
continue;