mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
#7912 Hidden agents without modules
This commit is contained in:
parent
e2ae42dd89
commit
2de38a915b
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user