From b58ac26b3aafed99963a289132e306dccd6aa4cf Mon Sep 17 00:00:00 2001 From: skeeter Date: Tue, 30 Jan 2001 11:35:23 +0000 Subject: [PATCH] change the loading of the application params --- phpgwapi/inc/class.phpgw.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.phpgw.inc.php b/phpgwapi/inc/class.phpgw.inc.php index 07b38941f8..b389c0a7d3 100644 --- a/phpgwapi/inc/class.phpgw.inc.php +++ b/phpgwapi/inc/class.phpgw.inc.php @@ -127,10 +127,10 @@ exit; } $this->preferences = CreateObject("phpgwapi.preferences", intval($phpgw_info["user"]["account_id"])); - $app_params[] = intval($phpgw_info["user"]["account_id"]); - $this->applications = CreateObject("phpgwapi.applications", $app_params); + $this->applications = CreateObject("phpgwapi.applications", array(intval($phpgw_info["user"]["account_id"]),'u')); $phpgw_info["user"]["preferences"] = $this->preferences->get_saved_preferences(); $phpgw_info["user"]["apps"] = $this->applications->enabled_apps(); + @reset($phpgw_info["user"]["apps"]); } $this->translation = CreateObject("phpgwapi.translation");