mirror of https://github.com/MISP/MISP
fix: [events:restsearch] Correctly unset variable by reference after looping
- This avoid attributes being overridden others when using `includeAnalystData` parameterpull/7976/merge
parent
1c7121b881
commit
3dcf54aad5
|
@ -2257,6 +2257,7 @@ class Event extends AppModel
|
|||
}
|
||||
}
|
||||
$event['Attribute'] = array_values($event['Attribute']);
|
||||
unset($attribute);
|
||||
}
|
||||
if (!empty($event['Object'])) {
|
||||
if (!$sharingGroupReferenceOnly) {
|
||||
|
|
Loading…
Reference in New Issue