Fixed agents_get_agentmodule_group to search only in tagente table

This commit is contained in:
fermin831 2018-08-10 12:55:04 +02:00
parent 77825c7b2c
commit 8be030b7da
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
/**