Skip to content

Commit

Permalink
Fix error in user search
Browse files Browse the repository at this point in the history
The error is caused by an empty radiobutton.
```
preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
```
  • Loading branch information
BurntimeX committed Feb 5, 2024
1 parent d11cd7d commit 2ef0c53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function getCondition(PreparedStatementConditionBuilder &$conditions, Opt
return false;
}

$conditions->add("option_value.userOption" . $option->optionID . " = ?", [StringUtil::trim($value)]);
$conditions->add("option_value.userOption" . $option->optionID . " = ?", [StringUtil::trim($value ?: '')]);

return true;
}
Expand Down

0 comments on commit 2ef0c53

Please sign in to comment.