2010-08-13 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_reporting.php: fixed the loop of alerts when Pandora
	haven't alerts.
	Fixes: #3044246



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3141 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-08-13 11:02:03 +00:00
parent bdf65119e1
commit bcd263b5c8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-08-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fixed the loop of alerts when Pandora
haven't alerts.
Fixes: #3044246
2010-08-13 Sergio Martin <sergio.martin@artica.es> 2010-08-13 Sergio Martin <sergio.martin@artica.es>
* operation/snmpconsole/snmp_view.php: Fixed the pagination * operation/snmpconsole/snmp_view.php: Fixed the pagination

View File

@ -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 INNER JOIN talert_templates AS t2 ON t1.id = t2.id
WHERE id_agent_module = ' . $id_agent_module); WHERE id_agent_module = ' . $id_agent_module);
if ($alerts === false) {
$alerts = array();
}
$i = 0; $i = 0;
foreach ($alerts as $alert) { foreach ($alerts as $alert) {
$data = array(); $data = array();