From a4982a7f0aa6dc6b90bad53446f89ad165ad007f Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 7 Jan 2001 23:34:39 +0000 Subject: [PATCH] fix for user preferences --- phpgwapi/inc/phpgw_accounts_shared.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/phpgw_accounts_shared.inc.php b/phpgwapi/inc/phpgw_accounts_shared.inc.php index 2f24f68efd..a52b4fb68f 100644 --- a/phpgwapi/inc/phpgw_accounts_shared.inc.php +++ b/phpgwapi/inc/phpgw_accounts_shared.inc.php @@ -21,8 +21,8 @@ //echo "accounts_const called
line: $line
$file"; $phpgw->accounts->phpgw_fillarray(); - if(! $phpgw->preferences->account_id) { - $phpgw->preferences->preferences($phpgw_info["user"]["account_id"]); + if(!$phpgw->preferences->account_id) { + $phpgw->preferences = new preferences($phpgw_info["user"]["account_id"]); } $phpgw_info["user"]["preferences"] = $phpgw->preferences->get_preferences(); $this->groups = $this->read_groups($phpgw_info["user"]["userid"]);