#7912 Hidden agents without modules

This commit is contained in:
Daniel Maya 2021-10-26 15:36:12 +02:00
parent e2ae42dd89
commit 2de38a915b
1 changed files with 6 additions and 0 deletions

View File

@ -895,9 +895,15 @@ class Tree
protected function processAgents(&$agents, $server=false)
{
if (!empty($agents)) {
$agents_aux = [];
foreach ($agents as $iterator => $agent) {
$this->processAgent($agents[$iterator], $server);
if ($agents[$iterator]['counters']['total'] !== '0') {
$agents_aux[] = $agents[$iterator];
}
}
$agents = $agents_aux;
}
}