From 1e845cb5e3da13c32b7f0f1afc7254c03ea6e70b Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 30 Aug 2021 12:13:33 +0200 Subject: [PATCH] #7867 Fixed id_agent --- pandora_console/include/functions_agents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 9f0512fa09..fd121a28e2 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -3072,7 +3072,7 @@ function agents_get_network_interfaces($agents=false, $agents_filter=false) $ni_by_agents = []; foreach ($agents as $agent) { - $agent_id = $agent['id_agente']; + $agent_id = (isset($agent['id_agente'])) ? $agent['id_agente'] : $agent; $agent_group_id = $agent['id_grupo']; $agent_name = $agent['alias']; $agent_interfaces = [];