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