From 0b0b62991a4cba63e544018234eeac612d6ade20 Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 11 Aug 2022 13:59:25 +0200 Subject: [PATCH] fix: [internal] Attribute model, initialise variable --- app/Model/Attribute.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index 40f9df365..3ecd6080e 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -897,7 +897,8 @@ class Attribute extends AppModel $defaultMaxSize = $outputFormat === 'webp' ? 400 : 200; $maxWidth = $maxWidth ?: $defaultMaxSize; $maxHeight = $maxHeight ?: $defaultMaxSize; - + $suffix = null; + if ($maxWidth == $defaultMaxSize && $maxHeight == $defaultMaxSize) { $thumbnailInRedis = Configure::read('MISP.thumbnail_in_redis'); if ($thumbnailInRedis) {