mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Bug fix in get_directory_list() for files named 0 :-)
This commit is contained in:
parent
0043ddbb1a
commit
81fcd0f019
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user