diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 803f822411..f8361c7d04 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-04-02 Esteban Sanchez + + * include/functions_reporting.php: Added alert API on + get_agent_alerts_reporting_table() to solve a notice error. + 2009-04-02 Esteban Sanchez * extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed id on tconfig diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index ef56a3f203..c2d63164f9 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -484,6 +484,8 @@ function get_agent_alerts_reporting_table ($id_agent, $period = 0, $date = 0) { $table->head[4] = __('Last fired'); $table->head[5] = __('Times Fired'); + require_once ('include/functions_alerts.php'); + $alerts = get_agent_alerts ($id_agent); /* FIXME: Add compound alerts to the report. Some extra code is needed here */ foreach ($alerts['simple'] as $alert) {