diff options
-rw-r--r-- | lib/private/preview.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index dabb274323f..41fc29e045f 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -536,11 +536,9 @@ class Preview { foreach ($allThumbnails as $thumbnail) { $name = $thumbnail['name']; - if (strpos($name, 'max')) { - list($cachedWidth, $cachedHeight) = $this->getDimensionsFromFilename($name); - if ($cachedWidth === $width && $cachedHeight === $height) { - return true; - } + list($cachedWidth, $cachedHeight) = $this->getDimensionsFromFilename($name); + if ($cachedWidth === $width && $cachedHeight === $height) { + return true; } } |