From 4e2ed78789e32f7762294d434f0cda9484da2598 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 18 Jun 2006 04:58:02 +0000 Subject: [PATCH] prevent invinit recursion if read_repository() is called without $this->account_id set --- phpgwapi/inc/class.accounts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**