Skip to content

Commit

Permalink
check for file existence first (Cache_File)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvinet committed Sep 4, 2011
1 parent ecabae2 commit b913e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pronto/core/cache/file.php
Expand Up @@ -90,7 +90,7 @@ function delete($key)
$key = $this->_mangle_key($key);
$fn = $this->cache_dir.DS.$key;

return @unlink($fn);
return is_file($fn) ? @unlink($fn) : false;
}

/**
Expand Down

0 comments on commit b913e2c

Please sign in to comment.