From c0e5e18599e0cc1eb4c1a64a278921055e6e2f7d Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Thu, 3 Jan 2019 20:31:14 +0100
Subject: warn about get_cache calls without ID

---
 it_url.class | 3 +++
 1 file changed, 3 insertions(+)

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));
 
-- 
cgit v1.2.3