Fixed minor bug with Tree view.

This commit is contained in:
Arturo Gonzalez 2016-01-28 14:38:23 +01:00
parent 1c374acc3f
commit 10980a8106

View File

@ -2541,9 +2541,9 @@ class Tree {
} }
static function processCounters(&$groups) { static function processCounters(&$groups) {
$all_counters = []; $all_counters = array();
foreach ($groups as $id => $group) { foreach ($groups as $id => $group) {
$child_counters = []; $child_counters = array();
if (!empty($groups[$id]['children'])) { if (!empty($groups[$id]['children'])) {
$child_counters = Tree::processCounters($groups[$id]['children']); $child_counters = Tree::processCounters($groups[$id]['children']);
} }