From 55800f97a81fcfc12024352d5bfe7ca952fc0f66 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 25 May 2022 17:05:19 +0200 Subject: avoid warnings on assoc results --- 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 af162c5..ea72c9a 100644 --- a/it_url.class +++ b/it_url.class @@ -679,7 +679,7 @@ static function get_cache($p = array()) } if (EDC('getcachelog')) - it::log('debug', 'getcachelog', $p['id'], $p['url'], $newfile ? "fetched=" . mb_substr($data, 0, 500) : ""); + it::log('debug', 'getcachelog', $p['id'], $p['url'], $newfile && is_string($data) ? "fetched=" . mb_substr($data, 0, 500) : ""); ### EDC('getcache', $success, $path); # too verbose return $success ? ($p['returnheaders'] ? array($path, $headers) : $path) : false; -- cgit v1.2.3