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; }