diff --git a/pandora_console/include/functions_groups.php b/pandora_console/include/functions_groups.php index 9dc757d1e6..20841bf26a 100644 --- a/pandora_console/include/functions_groups.php +++ b/pandora_console/include/functions_groups.php @@ -567,7 +567,7 @@ function groups_get_groups_tree_recursive($groups, $trash=0, $trash2=0) $tree = $groups; foreach ($groups as $key => $group) { - if ($group['id_grupo'] == 0) { + if (is_array($group) === false || (int) $group['id_grupo'] === 0) { continue; }