mirror of https://github.com/MISP/MISP
chg: [internal] Optimise Event::getRelatedEvents for non correlated events
parent
3153b45539
commit
e475b2bf7f
|
@ -832,6 +832,10 @@ class Event extends AppModel
|
|||
'group' => 'Correlation.event_id',
|
||||
'order' => array('Correlation.event_id DESC')));
|
||||
|
||||
if (empty($correlations)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$relatedEventIds = array_values($correlations);
|
||||
// now look up the event data for these attributes
|
||||
$conditions = $this->createEventConditions($user);
|
||||
|
|
Loading…
Reference in New Issue