diff options
author | Urban Müller | 2022-05-25 17:05:19 +0200 |
---|---|---|
committer | Urban Müller | 2022-05-25 17:05:19 +0200 |
commit | 55800f97a81fcfc12024352d5bfe7ca952fc0f66 (patch) | |
tree | 626176095f9297801a2e320c9c7ca5f992ae9fb1 | |
parent | 0c1148fca23333d9dd00ec204968a22222af1388 (diff) | |
download | itools-55800f97a81fcfc12024352d5bfe7ca952fc0f66.tar.gz itools-55800f97a81fcfc12024352d5bfe7ca952fc0f66.tar.bz2 itools-55800f97a81fcfc12024352d5bfe7ca952fc0f66.zip |
avoid warnings on assoc results
-rw-r--r-- | it_url.class | 2 |
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; |