From 48009a16e5204bf708564b7283080dc40890d83a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Aug 2012 10:47:47 +0000 Subject: [PATCH] avoid calling accounts->members(hips) without an account_id --- phpgwapi/inc/class.categories.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 5cd7969de1..a96e6ca773 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -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;