From 14a19af72006fc5d27e5ab9aa15898c8befca8d8 Mon Sep 17 00:00:00 2001 From: Henrik Elsner Date: Fri, 27 Oct 2023 12:31:50 +0200 Subject: [PATCH] fix: prevent undefined index issue --- Classes/Processor/ImgProxyProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Processor/ImgProxyProcessor.php b/Classes/Processor/ImgProxyProcessor.php index f55acd6..275e145 100644 --- a/Classes/Processor/ImgProxyProcessor.php +++ b/Classes/Processor/ImgProxyProcessor.php @@ -82,8 +82,8 @@ public function processTask(TaskInterface $task) ); $urlBuilder->setResizeType('force'); } elseif ( - str_ends_with($processingConfiguration['width'], 'c') || - str_ends_with($processingConfiguration['height'], 'c') + str_ends_with($processingConfiguration['width'] ?? '', 'c') || + str_ends_with($processingConfiguration['height'] ?? '', 'c') ) { $urlBuilder->setResizeType('fill'); }