From 9b899963e6a851d79d0bac67aae78463328fc136 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Wed, 22 Nov 2023 20:51:16 +0100 Subject: [PATCH] fix Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in src\addons\yform_field\lib\yform\value\domain.php on line 25 --- lib/yform/value/domain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yform/value/domain.php b/lib/yform/value/domain.php index 0680749..0cd8a61 100644 --- a/lib/yform/value/domain.php +++ b/lib/yform/value/domain.php @@ -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]); }