summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/io.php2
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