summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/file.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index c83805600..cb2a27a9d 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -310,10 +310,13 @@ class File extends CI_Controller {
}
}
+ closedir($dh);
+
if ($empty) {
rmdir($upload_path."/".$dir);
}
}
+ closedir($outer_dh);
}
}