diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 826ca971c5..671a831504 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1035,11 +1035,11 @@ function agents_get_group_agents( foreach ($id_group as $parent) { $id_group = array_merge( $id_group, - groups_get_id_recursive($parent, true) + groups_get_id_recursive($parent, false) ); } } else { - $id_group = groups_get_id_recursive($id_group, true); + $id_group = groups_get_id_recursive($id_group, false); } // Check available groups for target user only if asking for 'All' group.