mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-2620-no-se-puede-acceder-graficas-de-modulo-desde-la-meta' into 'develop'
Fixed agents_get_agentmodule_group to search only in tagente table See merge request artica/pandorafms!1675
This commit is contained in:
commit
fd1811bee6
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user