Merge branch 'ent-8653-No-funciona-selector-de-grupos-en-apartado-de-perfil-en-creacion-edicion-de-usuario' into 'develop'

fix group selector in user creation and user edition view

See merge request artica/pandorafms!4728
This commit is contained in:
Daniel Rodriguez 2022-03-01 15:12:41 +00:00
commit f69ade2ca0
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;
}