aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-29 13:19:43 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-29 13:19:43 +0000
commitd5cb7e4952b33da42579b40158970ff06b86bd71 (patch)
tree863f3fd74f17cf83448320d5125788ad41e47703
parent58cf287326cad8892ce61e29d897628c80d09343 (diff)
downloadelgg-d5cb7e4952b33da42579b40158970ff06b86bd71.tar.gz
elgg-d5cb7e4952b33da42579b40158970ff06b86bd71.tar.bz2
Fixes #1151: Added is_dir() check before attempting to create cache directory.
git-svn-id: https://code.elgg.org/elgg/trunk@3415 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/cache.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 70a8d49f2..703f61bd2 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -313,7 +313,8 @@
// Create full path
$path = $this->get_variable("cache_path") . $matrix;
- mkdir($path, 0700, true);
+ if (!is_dir($path))
+ mkdir($path, 0700, true);
// if (!mkdir($path, 0700, true)) throw new IOException("Could not make $path");
@@ -437,4 +438,4 @@
}
}
-?> \ No newline at end of file
+?>