summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-08-21 17:09:25 +0200
committerUrban Müller2017-08-21 17:09:25 +0200
commita1ab45477e9f8fc60ff9632b06370ed947cf64ec (patch)
tree593a0ceeb1da7a394b4186f47a3af40429213bb2
parentbb2eeffd799ac6b184765279185c663d21276a51 (diff)
downloaditools-a1ab45477e9f8fc60ff9632b06370ed947cf64ec.tar.gz
itools-a1ab45477e9f8fc60ff9632b06370ed947cf64ec.tar.bz2
itools-a1ab45477e9f8fc60ff9632b06370ed947cf64ec.zip
correctly use old "safety" parameter in get_cache_contents
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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]);
}
/**