diff --git a/app/Model/Feed.php b/app/Model/Feed.php index 9229f27ac..8958746f7 100644 --- a/app/Model/Feed.php +++ b/app/Model/Feed.php @@ -486,7 +486,8 @@ class Feed extends AppModel if (in_array($attribute['type'], $compositeTypes, true)) { $parts = explode('|', $attribute['value']); - list($value1, $value2) = count($parts) === 1 ? [$parts[0], null] : $parts; + $value1 = $parts[0]; + $value2 = $parts[1] ?? null; $parts = [$value1]; if (!in_array($attribute['type'], Attribute::PRIMARY_ONLY_CORRELATING_TYPES, true)) {