diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index f4310418b3..fe43f419cd 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1354,7 +1354,11 @@ function agents_get_name ($id_agent, $case = "none") { * @return string Alias of the given agent. */ function agents_get_alias ($id_agent, $case = 'none') { - $alias = (string) db_get_value ('alias', 'tagente', 'id_agente', (int) $id_agent); + if(is_metaconsole()){ + $alias = (string) db_get_value ('alias', 'tmetaconsole_agent', 'id_tagente', (int) $id_agent); + } else { + $alias = (string) db_get_value ('alias', 'tagente', 'id_agente', (int) $id_agent); + } switch ($case) { case 'upper':