mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added tmetaconsole_agent in function agents_get_alias
This commit is contained in:
parent
999edad737
commit
e83c3bb5aa
@ -1354,7 +1354,11 @@ function agents_get_name ($id_agent, $case = "none") {
|
|||||||
* @return string Alias of the given agent.
|
* @return string Alias of the given agent.
|
||||||
*/
|
*/
|
||||||
function agents_get_alias ($id_agent, $case = 'none') {
|
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) {
|
switch ($case) {
|
||||||
case 'upper':
|
case 'upper':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user