mirror of https://github.com/MISP/MISP
Fixed a bug with no sighting data in an event causing a notice
parent
800b29f5bc
commit
2ccdef8626
|
@ -2,6 +2,7 @@
|
|||
$mayModify = (($isAclModify && $event['Event']['user_id'] == $me['id'] && $event['Orgc']['id'] == $me['org_id']) || ($isAclModifyOrg && $event['Orgc']['id'] == $me['org_id']));
|
||||
$mayPublish = ($isAclPublish && $event['Orgc']['id'] == $me['org_id']);
|
||||
if (Configure::read('Plugin.Sightings_enable')) {
|
||||
$sightingPopover = '';
|
||||
if (isset($event['Sighting']) && !empty($event['Sighting'])) {
|
||||
$ownSightings = array();
|
||||
$orgSightings = array();
|
||||
|
@ -15,7 +16,6 @@ if (Configure::read('Plugin.Sightings_enable')) {
|
|||
else $orgSightings['Other organisations'] = 1;
|
||||
}
|
||||
}
|
||||
$sightingPopover = '';
|
||||
foreach ($orgSightings as $org => $sightingCount) $sightingPopover .= '<span class=\'bold\'>' . h($org) . '</span>: <span class=\'green\'>' . h($sightingCount) . '</span><br />';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue