mirror of https://github.com/MISP/MISP
chg: [internal] Faster checking if warninglist already exists for event
parent
60207d9a80
commit
c9b024e220
|
@ -364,7 +364,7 @@ class Warninglist extends AppModel
|
|||
} else {
|
||||
$object['warnings'][$result][] = $list['Warninglist']['name'];
|
||||
}
|
||||
if (empty($eventWarnings) || !in_array($list['Warninglist']['name'], $eventWarnings)) {
|
||||
if (!isset($eventWarnings[$list['Warninglist']['id']])) {
|
||||
$eventWarnings[$list['Warninglist']['id']] = $list['Warninglist']['name'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue