Added tmetaconsole_agent in function agents_get_alias

This commit is contained in:
danielmaya 2018-03-26 12:03:25 +02:00
parent 999edad737
commit e83c3bb5aa
1 changed files with 5 additions and 1 deletions

View File

@ -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':