mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 19:09:08 +02:00
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:
parent
7731df03ea
commit
8218a884a4
@ -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>
|
2010-11-04 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* operation/incidents/incident.php: Fixed incidents filter
|
* operation/incidents/incident.php: Fixed incidents filter
|
||||||
|
@ -791,6 +791,9 @@ function alert_reporting_agent ($id_agent, $period = 0, $date = 0, $return = tru
|
|||||||
|
|
||||||
if (isset($alerts['simple'])) {
|
if (isset($alerts['simple'])) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
if ($alerts['simple'] === false)
|
||||||
|
$alerts['simple'] = array();
|
||||||
|
|
||||||
foreach ($alerts['simple'] as $alert) {
|
foreach ($alerts['simple'] as $alert) {
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = get_db_value_filter('nombre', 'tagente_modulo', array('id_agente_modulo' => $alert['id_agent_module']));
|
$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) {
|
if ($actions === false) {
|
||||||
$actions = array();
|
$actions = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($actions === false)
|
||||||
|
$actions = array();
|
||||||
|
|
||||||
foreach ($actions as $action) {
|
foreach ($actions as $action) {
|
||||||
$data[2] .= '<li>' . $action['name'] . '</li>';
|
$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) {
|
if ($firedTimes === false) {
|
||||||
$firedTimes = array();
|
$firedTimes = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($firedTimes === false)
|
||||||
|
$firedTimes = array();
|
||||||
|
|
||||||
foreach ($firedTimes as $fireTime) {
|
foreach ($firedTimes as $fireTime) {
|
||||||
$data[3] .= '<li>' . $fireTime['timestamp'] . '</li>';
|
$data[3] .= '<li>' . $fireTime['timestamp'] . '</li>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user