From 314a06ef39fa0081a54ba7cfcebce4a72cb7bad8 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 25 Mar 2008 14:40:01 +0000 Subject: Marcus Povey * IO Exception if cache directory doesn't exist git-svn-id: https://code.elgg.org/elgg/trunk@268 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 1 + 1 file changed, 1 insertion(+) (limited to 'engine') 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) -- cgit v1.2.3