diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index 6ab3643a89..109f56ec83 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -585,8 +585,8 @@ class Tree { // Increase counters $actual_module_group_root['counters']['total']++; - if (isset($actual_module_group_root['counters'][$agent['status']])) - $actual_module_group_root['counters'][$agent['status']]++; + if (isset($actual_module_group_root['counters'][$actual_agent['status']])) + $actual_module_group_root['counters'][$actual_agent['status']]++; } } // If there is an agent and a module group open and not saved