From a1ab45477e9f8fc60ff9632b06370ed947cf64ec Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 21 Aug 2017 17:09:25 +0200 Subject: correctly use old "safety" parameter in get_cache_contents --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 0b6b166..b7ea7d7 100644 --- a/it_url.class +++ b/it_url.class @@ -634,7 +634,7 @@ function get_cache($p = array()) */ function get_cache_contents($p) { - return ($fn = self::get_cache($p)) ? file_get_contents($fn) : it::error((array)$p['it_error'] + ['title' => "failed getting " . it_url::absolute($p['url']), 'body' => $p]); + return ($fn = self::get_cache($p)) ? file_get_contents($fn) : it::error((array)$p['it_error'] + ['title' => $p['safety'] == 0 ? false : "failed getting " . it_url::absolute($p['url']), 'body' => $p]); } /** -- cgit v1.2.3