fixed warning if a group without members got created

This commit is contained in:
Ralf Becker 2006-07-13 19:54:02 +00:00
parent 6a0bd14bac
commit b12b8ada8b

View File

@ -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