mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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
|
else
|
||||||
{
|
{
|
||||||
$this->account_id = (int) get_account_id($accountid);
|
$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->global_owners[] = self::GLOBAL_ACCOUNT;
|
||||||
}
|
}
|
||||||
$this->app_name = $app_name;
|
$this->app_name = $app_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user