aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+?>