Browse Source

fix typo in previous

Andrew Dolgov 4 months ago
parent
commit
ae39d5b219
1 changed files with 1 additions and 1 deletions
  1. 1 1
      init.php

+ 1 - 1
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")) {