diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-01-19 20:10:49 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-01-19 20:10:49 +0100 |
commit | 8426a3ee6fca3bd0fc582d6c405f5d30e12028d0 (patch) | |
tree | 7ea13970e0c67ddce8f79beed9f19e2e39011018 | |
parent | 5838057a4fe97e039cc70bf30da3619cb9072c74 (diff) | |
download | rpg-8426a3ee6fca3bd0fc582d6c405f5d30e12028d0.tar.gz rpg-8426a3ee6fca3bd0fc582d6c405f5d30e12028d0.tar.bz2 |
check for false in readdir
-rw-r--r-- | inc/io.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/io.php b/inc/io.php index 892f93759..c5225a2e0 100644 --- a/inc/io.php +++ b/inc/io.php @@ -417,7 +417,7 @@ function io_rmdir($path, $removefiles = false) { $files = array(); if(!$dh = @opendir($path)) return false; - while($f = readdir($dh)) { + while(false !== ($f = readdir($dh))) { if($f == '..' || $f == '.') continue; // collect dirs and files first |