fix: [internal] Attribute model, initialise variable

pull/8537/head
iglocska 2022-08-11 13:59:25 +02:00
parent 7dbb0a6669
commit 0b0b62991a
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 1 deletions

View File

@ -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) {