2009-03-05 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Fixed notice. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1518 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
02b93c01c0
commit
e3a206147e
|
@ -1,3 +1,7 @@
|
|||
2009-03-05 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/functions_reporting.php: Fixed notice.
|
||||
|
||||
2009-03-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* include/auth/ldap.php: Fixed a small issue to check on a variable
|
||||
|
|
|
@ -709,13 +709,15 @@ function get_agents_detailed_event_reporting ($id_agents, $period = 0, $date = 0
|
|||
$table->head[4] = __('Timestamp');
|
||||
|
||||
$events = array ();
|
||||
if ($events)
|
||||
foreach ($id_agents as $id_agent) {
|
||||
$event = get_agent_events ($id_agent, (int) $period, (int) $date);
|
||||
if (!empty ($event)) {
|
||||
array_push ($events, $event);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($events)
|
||||
foreach ($events as $event) {
|
||||
$data = array ();
|
||||
$data[0] = $event['evento'];
|
||||
|
@ -725,8 +727,9 @@ function get_agents_detailed_event_reporting ($id_agents, $period = 0, $date = 0
|
|||
$data[4] = $event['time2'];
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
return print_table ($table, $return);
|
||||
|
||||
if ($events)
|
||||
return print_table ($table, $return);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue