mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
avoid warning on unexpected accounts->memberships result
This commit is contained in:
parent
609aa97d9d
commit
003f36afdb
@ -412,7 +412,7 @@ class preferences
|
||||
if ($this->account_id > 0)
|
||||
{
|
||||
$primary_group = accounts::id2name($this->account_id, 'account_primary_group');
|
||||
foreach($GLOBALS['egw']->accounts->memberships($this->account_id, true) as $gid)
|
||||
foreach((array)$GLOBALS['egw']->accounts->memberships($this->account_id, true) as $gid)
|
||||
{
|
||||
if ($gid != $primary_group) $to_read[] = $gid + self::DEFAULT_ID; // need to offset it with DEFAULT_ID = -2!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user