diff options
-rw-r--r-- | it_url.class | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index 984f621..33bf4b1 100644 --- a/it_url.class +++ b/it_url.class @@ -702,7 +702,8 @@ function get_cache($p = array()) if (!($result = @filesize($dstpath) && @rename($dstpath, $path))) { @unlink($dstpath); - @unlink($path); + if (!$p['keepfailed']) + @unlink($path); } it_url::_unlock($path, $lock); |