From b987086645e10265499d642e4edd27f59b7e6ded Mon Sep 17 00:00:00 2001 From: Torben Hansen Date: Sun, 27 Oct 2024 06:13:52 +0100 Subject: [PATCH] [TASK] Added getQueryParams fallback in RegistrationValidator --- Classes/Validation/Validator/RegistrationValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Validation/Validator/RegistrationValidator.php b/Classes/Validation/Validator/RegistrationValidator.php index 31ddbfe30..187275ae1 100644 --- a/Classes/Validation/Validator/RegistrationValidator.php +++ b/Classes/Validation/Validator/RegistrationValidator.php @@ -123,7 +123,7 @@ protected function validateDefaultFields(Registration $value): void protected function isSpamCheckFailed(Registration $registration, array $settings): bool { $pluginKey = 'tx_sfeventmgt_pieventregistration'; - $getMergedWithPost = $this->getRequest()->getQueryParams()[$pluginKey]; + $getMergedWithPost = $this->getRequest()->getQueryParams()[$pluginKey] ?? []; ArrayUtility::mergeRecursiveWithOverrule($getMergedWithPost, $this->getRequest()->getParsedBody()[$pluginKey] ?? []); $spamCheckService = new SpamCheckService(