summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-15 20:29:33 +0300
committerAndrew Dolgov <[email protected]>2019-08-15 20:29:33 +0300
commitae39d5b219a97d0df56d2966aa0cd4b2f41163a5 (patch)
tree6db2f5bf591645054da3402ca12340c6c98cc807 /init.php
parent8aba83daa5b0e4246d6f823de23d4ce679a69a66 (diff)
fix typo in previous
Diffstat (limited to 'init.php')
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 582dfea..0e8b7fb 100644
--- a/init.php
+++ b/init.php
@@ -211,7 +211,7 @@ class Api_Resize_Media extends Plugin {
$local_filename = sha1($url) . "-$width";
- if (!$this->cache->exists($local_filename)) {
+ if ($this->cache->exists($local_filename)) {
return $this->cache->getUrl($local_filename);
} else {
if ($this->cache->touch(sha1($url) . ".flag")) {