Skip to content

Commit

Permalink
[TASK] Added getQueryParams fallback in RegistrationValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
derhansen committed Oct 27, 2024
1 parent 5fa7286 commit b987086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Validation/Validator/RegistrationValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b987086

Please sign in to comment.