mirror of https://github.com/MISP/MISP
fix: Only try to look for feed correlations for a proposal if the proposal list isn't empty
parent
8725821a5a
commit
360b2df9bc
|
@ -1555,7 +1555,7 @@ class Event extends AppModel {
|
|||
}
|
||||
$event['Attribute'] = array_values($event['Attribute']);
|
||||
}
|
||||
if (isset($event['ShadowAttribute'])) {
|
||||
if (!empty($event['ShadowAttribute'])) {
|
||||
if ($isSiteAdmin && isset($options['includeFeedCorrelations']) && $options['includeFeedCorrelations']) {
|
||||
$this->Feed = ClassRegistry::init('Feed');
|
||||
$event['ShadowAttribute'] = $this->Feed->attachFeedCorrelations($event['ShadowAttribute'], $user);
|
||||
|
|
Loading…
Reference in New Issue