aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-25 14:40:01 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-25 14:40:01 +0000
commit314a06ef39fa0081a54ba7cfcebce4a72cb7bad8 (patch)
tree3e3b0be9d2477cb49736d326c1b00e1b342da8b3 /engine
parent5194ba4e0ea39d792d5409492057013201239ff9 (diff)
downloadelgg-314a06ef39fa0081a54ba7cfcebce4a72cb7bad8.tar.gz
elgg-314a06ef39fa0081a54ba7cfcebce4a72cb7bad8.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* IO Exception if cache directory doesn't exist git-svn-id: https://code.elgg.org/elgg/trunk@268 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-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)