aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/cache.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 2c7cf4604..469042108 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -176,6 +176,7 @@
$exclude = array(".","..");
$files = scandir($dir);
+ if (!$files) throw new IOException("$dir is not a directory.");
// Perform cleanup
foreach ($files as $f)