diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7f9dd0ea8f..5477754dab 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-08-13 Miguel de Dios + * include/functions_reporting.php: fixed the loop of alerts when Pandora + haven't alerts. + Fixes: #3044246 + 2010-08-13 Sergio Martin * operation/snmpconsole/snmp_view.php: Fixed the pagination diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 6e6c0a49b2..7e7e918971 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -876,6 +876,10 @@ function alert_reporting_module ($id_agent_module, $period = 0, $date = 0, $retu INNER JOIN talert_templates AS t2 ON t1.id = t2.id WHERE id_agent_module = ' . $id_agent_module); + if ($alerts === false) { + $alerts = array(); + } + $i = 0; foreach ($alerts as $alert) { $data = array();