MDL-10905 iterating properly through readdir()

This commit is contained in:
nicolasconnault
2007-10-15 05:42:20 +00:00
parent ec74fb3501
commit ca005e23f7
13 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ function delete_subdirectories($rootdir) {
$dir = opendir($rootdir);
while ($file = readdir($dir)) {
while (false !== ($file = readdir($dir))) {
if ($file != '.' and $file != '..') {
$fullfile = $rootdir .'/'. $file;
if (filetype($fullfile) == 'dir') {