Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/private/preview.php8
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;
}
}