Skip to content

Commit

Permalink
[BUGFIX] Fix access to non existent key in array (#1222)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 29, 2024
1 parent 4db0f81 commit 53c5873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 53c5873

Please sign in to comment.