Skip to content

Commit

Permalink
fix Deprecated: explode(): Passing null to parameter #2 ($string) of …
Browse files Browse the repository at this point in the history
…type string is deprecated in src\addons\yform_field\lib\yform\value\domain.php on line 25
  • Loading branch information
alxndr-w authored Nov 22, 2023
1 parent 1ac64e5 commit 9b89996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yform/value/domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function getListValue(array $params): string
$new_select = new self();
$values = self::domains();

foreach (explode(',', $params['value']) as $k) {
foreach (explode(',', $params['value'] ??) as $k) {
if (isset($values[$k])) {
$return[] = rex_i18n::translate($values[$k]);
}
Expand Down

0 comments on commit 9b89996

Please sign in to comment.