Révision 340ce958
Ajouté par Renato Botelho il y a plus de 9 ans
etc/inc/auth.inc | ||
---|---|---|
574 | 574 |
|
575 | 575 |
/* determine which memberships to add */ |
576 | 576 |
foreach ($new_groups as $groupname) { |
577 |
if (in_array($groupname,$cur_groups)) |
|
577 |
if ($groupname == '' || in_array($groupname,$cur_groups))
|
|
578 | 578 |
continue; |
579 | 579 |
$group = & $config['system']['group'][$groupindex[$groupname]]; |
580 | 580 |
$group['member'][] = $user['uid']; |
Formats disponibles : Unified diff
Add an extra protection to avoid having an empty group created