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,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);
}
}
}