mirror of https://github.com/MISP/MISP
fix: [stix upload] Removed 'isset' already tested with 'empty' at the same place
parent
a352bc85fa
commit
5f955acce7
|
@ -3665,7 +3665,7 @@ class Event extends AppModel
|
|||
'conditions' => array('Event.id' => $this->id),
|
||||
'recursive' => -1
|
||||
));
|
||||
if (isset($data['Event']['Attribute']) && !empty($data['Event']['Attribute'])) {
|
||||
if (!empty($data['Event']['Attribute'])) {
|
||||
foreach ($data['Event']['Attribute'] as $k => $attribute) {
|
||||
$block = false;
|
||||
for ($i = 0; $i < $k; $i++) {
|
||||
|
|
Loading…
Reference in New Issue