summaryrefslogtreecommitdiff
path: root/url.class
diff options
context:
space:
mode:
authorUrban Müller2007-01-18 19:02:02 +0000
committerUrban Müller2007-01-18 19:02:02 +0000
commita263faa1b126c27ea3666578b222e24849274c89 (patch)
treeb4f58da471f648a26c4ac2e8fd2769cd6b99da50 /url.class
parentd0ef2fa264f522e067dd4e0a1b51dcf47086e90e (diff)
downloaditools-a263faa1b126c27ea3666578b222e24849274c89.tar.gz
itools-a263faa1b126c27ea3666578b222e24849274c89.tar.bz2
itools-a263faa1b126c27ea3666578b222e24849274c89.zip
different it_error suppression semantics
Diffstat (limited to 'url.class')
-rw-r--r--url.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/url.class b/url.class
index c1be258..5e18490 100644
--- a/url.class
+++ b/url.class
@@ -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");
}