From 2009f1c1b0f0350c747309f97aa6c2ce69ca65f7 Mon Sep 17 00:00:00 2001 From: esanchezm Date: Thu, 2 Apr 2009 13:20:31 +0000 Subject: [PATCH] 2009-04-02 Esteban Sanchez * include/functions_reporting.php: Added alert API on get_agent_alerts_reporting_table() to solve a notice error. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1590 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_reporting.php | 2 ++ 2 files changed, 7 insertions(+) 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) {