From 0964862aa7056a41edd061e2641ef9e59cb84f8f Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 1 Mar 2007 06:32:27 +0000 Subject: [PATCH] reset the db all other phpgwapi data if switching domains --- phpgwapi/inc/class.sessions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index ca14506571..121ab49e1c 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -561,7 +561,8 @@ { $GLOBALS['egw']->ADOdb = null; $GLOBALS['egw_info']['user']['domain'] = $this->account_domain; - // reset the db + // reset the db all other phpgwapi data + $GLOBALS['egw_info']['server'] = array(); $GLOBALS['egw_info']['server']['db_host'] = $GLOBALS['egw_domain'][$this->account_domain]['db_host']; $GLOBALS['egw_info']['server']['db_port'] = $GLOBALS['egw_domain'][$this->account_domain]['db_port']; $GLOBALS['egw_info']['server']['db_name'] = $GLOBALS['egw_domain'][$this->account_domain]['db_name'];