From ea8662c7bc76dd0af470de02ad287fc49a9a415d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 2 Mar 2015 11:40:45 +0100 Subject: [PATCH] Fixed the connection to node in metaconsole when show the data module dialog. TICKET: #1870 (cherry picked from commit eea8e0d8aec49aa43cd3a2f6491bbbcc66a998fc) --- pandora_console/include/functions_modules.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 1bc432c898..c90a50e766 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -1555,7 +1555,9 @@ function modules_get_next_data ($id_agent_module, $utimestamp = 0, $string = 0) * * @return array The module value and the timestamp */ -function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $trash=false, $conexion = false, $order = 'ASC') { +function modules_get_agentmodule_data ($id_agent_module, $period, + $date = 0, $trash=false, $conexion = false, $order = 'ASC') { + $module = db_get_row('tagente_modulo', 'id_agente_modulo', $id_agent_module); @@ -1580,7 +1582,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $tr WHERE id_agente_modulo = %d AND utimestamp > %d AND utimestamp <= %d ORDER BY utimestamp %s", - $id_agent_module, $datelimit, $date, $order); + $id_agent_module, $datelimit, $date, $order); break; //log4x case 24: @@ -1589,7 +1591,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $tr WHERE id_agente_modulo = %d AND utimestamp > %d AND utimestamp <= %d ORDER BY utimestamp %s", - $id_agent_module, $datelimit, $date, $order); + $id_agent_module, $datelimit, $date, $order); break; default: $sql = sprintf ("SELECT datos AS data, utimestamp @@ -1597,7 +1599,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $tr WHERE id_agente_modulo = %d AND utimestamp > %d AND utimestamp <= %d ORDER BY utimestamp %s", - $id_agent_module, $datelimit, $date, $order); + $id_agent_module, $datelimit, $date, $order); break; }