#7867 Fixed id_agent

This commit is contained in:
Daniel Maya 2021-08-30 12:13:33 +02:00
parent 3be0c18165
commit 1e845cb5e3
1 changed files with 1 additions and 1 deletions

View File

@ -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 = [];