diff options
Diffstat (limited to 'url.class')
-rw-r--r-- | url.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -362,8 +362,8 @@ function get_cache($p = array()) if (($parts = parse_url($p['url'])) === false) it::error('malformed url ' . $p['url']); - if ($p['safety'] == 1) - it::error(array('title'=>"get_cache: download failures on {$p['url']}", 'ok_key'=>"ok_".$parts['host'], 'ok'=>$result ? 1 : 0)); # send err only if multi failure + if ($p['safety'] == 1 && !$result) + it::error(array('title'=>"get_cache: download failures on {$p['url']}", 'id'=>$parts['host'])); # send err only if multi failure @unlink("$path.lock"); } |