summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2022-05-25 17:05:19 +0200
committerUrban Müller2022-05-25 17:05:19 +0200
commit55800f97a81fcfc12024352d5bfe7ca952fc0f66 (patch)
tree626176095f9297801a2e320c9c7ca5f992ae9fb1 /it_url.class
parent0c1148fca23333d9dd00ec204968a22222af1388 (diff)
downloaditools-55800f97a81fcfc12024352d5bfe7ca952fc0f66.tar.gz
itools-55800f97a81fcfc12024352d5bfe7ca952fc0f66.tar.bz2
itools-55800f97a81fcfc12024352d5bfe7ca952fc0f66.zip
avoid warnings on assoc results
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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;