From de3b835d00cd1f73eca1dd07e984805f88a2e957 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 2 Jan 2015 09:55:30 +0100 Subject: [PATCH] Fixed an error on the module group tree counters --- pandora_console/include/class/Tree.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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