X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpruneFileCache.php;h=04319b33bc8c227da8f2de8ee3aa049879712892;hb=d912ae39113edf613ad47e30272d2eea68ef204d;hp=74298cb9ee2f3129c468b767083749030839098b;hpb=526341516a91502ac7cfd2e5590e7432b3f50c5d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pruneFileCache.php b/maintenance/pruneFileCache.php index 74298cb9ee..04319b33bc 100644 --- a/maintenance/pruneFileCache.php +++ b/maintenance/pruneFileCache.php @@ -81,7 +81,7 @@ class PruneFileCache extends Maintenance { protected function prune_directory( $dir, $report = false ) { $tsNow = time(); $dirHandle = opendir( $dir ); - while ( false !== ( $file = readdir( $dirHandle ) ) ) { + while ( ( $file = readdir( $dirHandle ) ) !== false ) { // Skip ".", "..", and also any dirs or files like ".svn" or ".htaccess" if ( $file[0] != "." ) { $path = $dir . '/' . $file; // absolute