diff --git a/pandora_console/operation/integria_incidents/incident.list.php b/pandora_console/operation/integria_incidents/incident.list.php index fe4666bc57..b68ebdfa0c 100644 --- a/pandora_console/operation/integria_incidents/incident.list.php +++ b/pandora_console/operation/integria_incidents/incident.list.php @@ -22,21 +22,29 @@ global $result_status; global $result_groups; global $result_resolutions; -foreach($result_status['status'] as $st) { - $status[$st['id']] = $st['name']; +if (isset ($result_status['status'])){ + + foreach($result_status['status'] as $st) { + $status[$st['id']] = $st['name']; + } } // Add special status cases $status[0] = __('Any'); $status[-10] = __('Not closed'); -foreach($result_groups['group'] as $gr) { - $groups[$gr['id']] = $gr['name']; +if (isset ($result_groups['group'])){ + foreach($result_groups['group'] as $gr) { + $groups[$gr['id']] = $gr['name']; + } } $resolutions[0] = __('None'); -foreach($result_resolutions['resolution'] as $res) { - $resolutions[$res['id']] = $res['name']; + +if (isset ($result_resolutions['resolution'])){ + foreach($result_resolutions['resolution'] as $res) { + $resolutions[$res['id']] = $res['name']; + } } echo '