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 dbc1083..bfbb806 100644
--- a/it_url.class
+++ b/it_url.class
@@ -448,6 +448,9 @@ function get_cache($p = array())
$path = it_url::get_cache_filename($p); # Must be before changing cachedir below
$p['cachedir'] = it_url::get_cache_dir($p);
+ if (!$p['id'])
+ it::error(['to' => "mueller", 'title' => "calling get_cache without id"]);
+
@mkdir($p['cachedir']);
@mkdir(dirname($path));