Skip to content

Commit

Permalink
[BUGFIX] Prevent possible undefined array key warning in userfunc
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwemer committed Sep 20, 2024
1 parent aafaf9d commit 78064ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/UserFunc/GetPowermailFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(ConnectionPool $connectionPool)
*/
public function getFormFieldsForCondition(array &$params): void
{
$conditionContainer = $params['row']['conditioncontainer'];
$conditionContainer = $params['row']['conditioncontainer'] ?? '';
if (!MathUtility::canBeInterpretedAsInteger($conditionContainer)) {
return;
}
Expand All @@ -55,7 +55,7 @@ public function getFormFieldsForCondition(array &$params): void
*/
public function getFormFieldsForRule(array &$params): void
{
$conditions = $params['row']['conditions'];
$conditions = $params['row']['conditions'] ?? '';
if (!MathUtility::canBeInterpretedAsInteger($conditions)) {
return;
}
Expand Down

0 comments on commit 78064ea

Please sign in to comment.