mirror of https://github.com/MISP/MISP
chg: [object:fromAttributes] Returns correct value if attribute list is
emptypull/4672/head
parent
753a445177
commit
7a104a2d0f
|
@ -739,7 +739,7 @@ class MispObject extends AppModel
|
|||
);
|
||||
// $attribute_types = array_keys(Hash::combine($attributes, '{n}.Attribute.type'));
|
||||
if (empty($attributes)) {
|
||||
return array();
|
||||
return array('templates' => array(), 'types' => array());
|
||||
}
|
||||
$attribute_types = array();
|
||||
foreach ($attributes as $i => $attribute) {
|
||||
|
|
Loading…
Reference in New Issue