summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;