2010-11-04 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_reporting.php: fixed warning in foreach loop.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3527 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-11-04 18:18:58 +00:00
parent 1933e68de6
commit 1895c5a16d
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-11-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fixed warning in foreach loop.
2010-11-04 Sergio Martin <sergio.martin@artica.es>
* operation/incidents/incident.php: Fixed incidents filter

View File

@ -791,6 +791,9 @@ function alert_reporting_agent ($id_agent, $period = 0, $date = 0, $return = tru
if (isset($alerts['simple'])) {
$i = 0;
if ($alerts['simple'] === false)
$alerts['simple'] = array();
foreach ($alerts['simple'] as $alert) {
$data = array();
$data[0] = get_db_value_filter('nombre', 'tagente_modulo', array('id_agente_modulo' => $alert['id_agent_module']));
@ -804,6 +807,10 @@ function alert_reporting_agent ($id_agent, $period = 0, $date = 0, $return = tru
if ($actions === false) {
$actions = array();
}
if ($actions === false)
$actions = array();
foreach ($actions as $action) {
$data[2] .= '<li>' . $action['name'] . '</li>';
}
@ -814,6 +821,10 @@ function alert_reporting_agent ($id_agent, $period = 0, $date = 0, $return = tru
if ($firedTimes === false) {
$firedTimes = array();
}
if ($firedTimes === false)
$firedTimes = array();
foreach ($firedTimes as $fireTime) {
$data[3] .= '<li>' . $fireTime['timestamp'] . '</li>';
}