avoid calling accounts->members(hips) without an account_id

This commit is contained in:
Ralf Becker 2012-08-08 10:47:47 +00:00
parent 75b458b2f8
commit 48009a16e5

View File

@ -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;