forked from extern/egroupware
avoid calling accounts->members(hips) without an account_id
This commit is contained in:
parent
75b458b2f8
commit
48009a16e5
@ -123,7 +123,7 @@ class categories
|
||||
else
|
||||
{
|
||||
$this->account_id = (int) get_account_id($accountid);
|
||||
$this->global_owners = $GLOBALS['egw']->accounts->memberships($this->account_id,true);
|
||||
$this->global_owners = $this->account_id ? $GLOBALS['egw']->accounts->memberships($this->account_id, true) : array();
|
||||
$this->global_owners[] = self::GLOBAL_ACCOUNT;
|
||||
}
|
||||
$this->app_name = $app_name;
|
||||
|
Loading…
Reference in New Issue
Block a user