From 83900b279ba85b6b884525d59922c7a19551cb67 Mon Sep 17 00:00:00 2001 From: Helmut Hackbarth Date: Wed, 3 Apr 2024 09:41:42 +0200 Subject: [PATCH] BUGFIX: https://github.com/t3solution/t3sbootstrap/issues/389 --- Classes/Wrapper/BackgroundWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Wrapper/BackgroundWrapper.php b/Classes/Wrapper/BackgroundWrapper.php index 97e5d1b9..4b8b9060 100644 --- a/Classes/Wrapper/BackgroundWrapper.php +++ b/Classes/Wrapper/BackgroundWrapper.php @@ -110,7 +110,7 @@ public function getProcessedData(array $processedData, array $flexconf, string $ // orig. image option in flexform if (!empty($flexconf['origImage'])) { $processedData['file'] = $file; - $processedData['ingWidth'] = $flexconf['width'] ? $flexconf['width'] : 1296; + $processedData['ingWidth'] = !empty($flexconf['width']) ? $flexconf['width'] : 1296; } else { $bgImage = GeneralUtility::makeInstance(BackgroundImageUtility::class) ->getBgImage($processedData['data']['uid'], 'tt_content', false, true, $flexconf, false, 0, $bgMediaQueries);