fixing the fix: -2 has nothing to do with the default group, it is the id for the default prefs

This commit is contained in:
Ralf Becker 2006-06-09 03:19:54 +00:00
parent 42b0097681
commit e8be3ed748

View File

@ -923,13 +923,10 @@
{ {
return false; return false;
} }
$memberships = array();
} }
else $memberships = $GLOBALS['egw']->accounts->memberships($accountid,true);
{
$memberships = $GLOBALS['egw']->accounts->memberships($accountid); if($groupid && !in_array($groupid,$memberships))
}
if($groupid)
{ {
$memberships[] = $groupid; $memberships[] = $groupid;