summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index 5393de9..dd5978b 100644
--- a/it_url.class
+++ b/it_url.class
@@ -387,6 +387,9 @@ function get_cache($p = array())
@mkdir($p['cachedir']);
@mkdir(dirname($path));
+ if (!is_writable(dirname($path)))
+ it::error(dirname($path) . " not writable");
+
if ($filemtime = it_url::_expired($path, $p['maxage'])) # Outdated(non-zero int) or non-existant(true)?
{
if ($lock = it_url::_lock($path))