fix group selector in user creation and user edition view
This commit is contained in:
parent
6f23817373
commit
69749e9498
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue