mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed warning if a group without members got created
This commit is contained in:
parent
6a0bd14bac
commit
b12b8ada8b
@ -291,9 +291,13 @@ class accounts_backend
|
||||
{
|
||||
//echo "<p>accounts::set_members(".print_r($members,true).",$gid)</p>\n";
|
||||
$GLOBALS['egw']->acl->delete_repository('phpgw_group',$gid);
|
||||
foreach($members as $id)
|
||||
|
||||
if (is_array($members))
|
||||
{
|
||||
$GLOBALS['egw']->acl->add_repository('phpgw_group',$gid,$id,1);
|
||||
foreach($members as $id)
|
||||
{
|
||||
$GLOBALS['egw']->acl->add_repository('phpgw_group',$gid,$id,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user