summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-14 12:52:39 +0300
committerAndrew Dolgov <[email protected]>2019-08-14 12:52:39 +0300
commit46f54330a29b1c7964737bd1b358eeb1bbed50ea (patch)
tree2778bc4c97e802d78e9f22ee19f29248cd75cff0 /init.php
parent6aba09ee3399d8c5607705e730fd575be62fb3ef (diff)
consistency: use DiskCache->exists() to check for present files
Diffstat (limited to 'init.php')
-rwxr-xr-xinit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index b1c8067..afd561a 100755
--- a/init.php
+++ b/init.php
@@ -286,7 +286,7 @@ class Af_Zz_Img_Phash extends Plugin {
if ($this->cache->isWritable()) {
$cached_file = sha1($src);
- if ($this->cache->getSize($cached_file) <= 0) {
+ if (!$this->cache->exists($cached_file)) {
$data = fetch_file_contents(array("url" => $src, "max_size" => MAX_CACHE_FILE_SIZE));
if ($data) {