From d844eb89d60850cd44d671f74494ea1940950ae6 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 23 Mar 2011 17:44:44 +0000 Subject: [PATCH] 2011-03-23 Miguel de Dios * operation/agentes/estado_agente.php: fixed the output of ajax request. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4127 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/agentes/estado_agente.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6e5e9a4517..c363644ded 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-03-23 Miguel de Dios + + * operation/agentes/estado_agente.php: fixed the output of ajax request. + 2011-03-23 Raul Mateos * extensions/ssh_console.php, extensions/vnc_view.php, diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index f00dca8744..cdfb1a3468 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -16,6 +16,8 @@ // Load global vars global $config; +ob_start(); + require_once ("include/functions_reporting.php"); check_login (); @@ -27,6 +29,8 @@ if (! check_acl ($config['id_user'], 0, "AR")) { } if (is_ajax ()) { + ob_get_clean(); + $get_agent_module_last_value = (bool) get_parameter ('get_agent_module_last_value'); $get_actions_alert_template = (bool) get_parameter("get_actions_alert_template"); @@ -75,6 +79,7 @@ if (is_ajax ()) { return; } +ob_end_clean(); $first = true; while ($row = get_db_all_row_by_steps_sql($first, $result, "SELECT * FROM tgrupo")) {