mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
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:
parent
42b0097681
commit
e8be3ed748
@ -923,13 +923,10 @@
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$memberships = array();
|
||||
}
|
||||
else
|
||||
{
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($accountid);
|
||||
}
|
||||
if($groupid)
|
||||
$memberships = $GLOBALS['egw']->accounts->memberships($accountid,true);
|
||||
|
||||
if($groupid && !in_array($groupid,$memberships))
|
||||
{
|
||||
$memberships[] = $groupid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user