fix: [stix upload] Removed 'isset' already tested with 'empty' at the same place

pull/6108/head
chrisr3d 2020-07-09 14:46:38 +02:00
parent a352bc85fa
commit 5f955acce7
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

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