From 2de38a915b975631291e91030ce094e9904301e0 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 26 Oct 2021 15:36:12 +0200 Subject: [PATCH] #7912 Hidden agents without modules --- pandora_console/include/class/Tree.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index aec55d97c7..96b74fc157 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -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; } }