fix group selector in user creation and user edition view

This commit is contained in:
alejandro.campos@artica.es 2022-03-01 15:12:28 +01:00
parent 6f23817373
commit 69749e9498
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}