fix: Fixed an issue with no disable_correlation key existing for an event in after save correlation

pull/2985/head
iglocska 2018-02-28 11:52:07 +01:00
parent 9fd8a1c14f
commit 788338231e
1 changed files with 1 additions and 1 deletions

View File

@ -1630,7 +1630,7 @@ class Attribute extends AppModel {
'order' => array(),
));
}
if ($event['Event']['disable_correlation']) {
if (!empty($event['Event']['disable_correlation']) && $event['Event']['disable_correlation']) {
return true;
}
if (Configure::read('MISP.enable_advanced_correlations') && in_array($a['type'], array('ip-src', 'ip-dst', 'domain-ip'))) {