From 8be030b7da96f43ed32467448924055d7f3b19be Mon Sep 17 00:00:00 2001 From: fermin831 Date: Fri, 10 Aug 2018 12:55:04 +0200 Subject: [PATCH] Fixed agents_get_agentmodule_group to search only in tagente table --- pandora_console/include/functions_agents.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index c80f1a634a..05652d3080 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -2023,8 +2023,7 @@ function agents_get_agentmodule_group ($id_module) { * @return int The group id */ function agents_get_agent_group ($id_agent) { - $table = is_metaconsole() ? "tmetaconsole_agent" : "tagente"; - return (int) db_get_value ('id_grupo', $table, 'id_agente', (int) $id_agent); + return (int) db_get_value ('id_grupo', "tagente", 'id_agente', (int) $id_agent); } /**