From 2cc00a3c52eb42d8c14a3d9ce00930f226d0c82b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Oct 2015 18:35:11 +0000 Subject: [PATCH] fix due to caching and reusing of connection not correctly set $this->Type == "mysql" --- phpgwapi/inc/class.egw_db.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index 5916f439e3..164e6c0df2 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -560,7 +560,12 @@ class egw_db $Host = preg_replace('/password=[^ ]+/','password=$Password',$Host); // eg. postgres dsn contains password throw new egw_exception_db_connection("ADOdb::$connect($Host, $User, \$Password, $Database) reconnect failed."); } - + // fix due to caching and reusing of connection not correctly set $this->Type == 'mysql' + if ($this->Type == 'mysqli') + { + $this->setupType = $this->Type; + $this->Type = 'mysql'; + } if ($new_connection) { foreach(get_included_files() as $file)