From 32e552f2a2db76d4deb6aa6583f7afe214dbe7b7 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Wed, 29 May 2024 14:14:13 +0200 Subject: [PATCH] Fix access to non existent key in array --- Classes/Controller/AbstractController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/AbstractController.php b/Classes/Controller/AbstractController.php index cc617ad09..496cc4d90 100644 --- a/Classes/Controller/AbstractController.php +++ b/Classes/Controller/AbstractController.php @@ -259,7 +259,7 @@ protected function sanitizeRequestData(): void } // tx_dlf[double] may only be 0 or 1. - $this->requestData['double'] = MathUtility::forceIntegerInRange($this->requestData['double'], 0, 1, 0); + $this->requestData['double'] = MathUtility::forceIntegerInRange($this->requestData['double'] ?? 0, 0, 1); } /**