mirror of https://github.com/MISP/MISP
chg: more clear
parent
c625f96307
commit
60160cf999
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue