diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 770e803c6d..f4f2e91dda 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -747,7 +747,7 @@ class accounts extends accounts_backend */ function read_repository() { - return $this->data = $this->read($this->account_id,true); + return $this->data = $this->account_id ? $this->read($this->account_id,true) : array(); } /**