MDL-10905 iterating correctly with readdir (as shown in php doc)

This commit is contained in:
nicolasconnault
2007-10-15 05:18:58 +00:00
parent 546526ed42
commit ed818bbdbf
13 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ function assignment_upgrade($oldversion) {
notify("Moving location of assignment files...");
$basedir = opendir("$CFG->dataroot");
while ($dir = readdir($basedir)) {
while (false !== ($dir = readdir($basedir))) {
if ($dir == "." || $dir == ".." || $dir == "users") {
continue;
}