From 391c18ff26d81b04c26269cee84c206e27f4d69f Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 16 Oct 2014 11:58:18 +0200 Subject: [PATCH] Fixed an error on the custom graphs section --- pandora_console/operation/reporting/reporting_xml.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/operation/reporting/reporting_xml.php b/pandora_console/operation/reporting/reporting_xml.php index 14180342e8..d910bb5bb1 100644 --- a/pandora_console/operation/reporting/reporting_xml.php +++ b/pandora_console/operation/reporting/reporting_xml.php @@ -389,15 +389,15 @@ foreach ($contents as $content) { $data["module"] = io_safe_output_xml (db_get_value ('nombre', 'tagente_modulo', 'id_agente_modulo', $content['id_agent_module'])); $data["agent"] = io_safe_output_xml (modules_get_agentmodule_agent_name ($content['id_agent_module'])); - + html_debug_print($content, true); $graph = db_get_row ("tgraph", "id_graph", $content['id_gs']); $data["title"] = __('Custom graph'); $data["objdata"] = array(); - + html_debug_print($graph, true); $result = db_get_all_rows_field_filter ("tgraph_source","id_graph",$content['id_gs']); $modules = array (); $weights = array (); - + html_debug_print($result, true); if ($result === false) { $result = array(); } @@ -421,7 +421,7 @@ foreach ($contents as $content) { $sql_count = "SELECT COUNT(id_agente_modulo) FROM tagente_datos - WHERE id_agente_modulo=".$content2['id_agent_module']." + WHERE id_agente_modulo=".$content['id_agent_module']." AND (utimestamp>=$date_init AND utimestamp<=$date_end)"; $data_count = db_get_value_sql($sql_count); @@ -437,7 +437,7 @@ foreach ($contents as $content) { $sql = "SELECT * FROM tagente_datos - WHERE id_agente_modulo=".$content2['id_agent_module']." + WHERE id_agente_modulo=".$content['id_agent_module']." AND (utimestamp>=$date_init AND utimestamp<=$date_end)"; $data_module = db_get_all_rows_sql($sql);