Fixed gets "all" group in the ntwmap generator

This commit is contained in:
Arturo Gonzalez 2016-09-13 13:47:12 +02:00
parent 70f1fb159b
commit a45475ad70

@ -370,6 +370,8 @@ function agents_get_agents ($filter = false, $fields = false,
if (empty ($filter['id_grupo'])) {
$all_groups = true;
$filter['id_grupo'] = $groups;
// Include "All group"
$filter['id_grupo'][] = 0;
}
elseif (! is_array ($filter['id_grupo'])) {
$all_groups = false;