chg: more clear

pull/8361/head
Luciano Righetti 2022-05-11 16:28:55 +02:00
parent c625f96307
commit 60160cf999
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {