mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-21 12:51:21 +01:00
fix due to caching and reusing of connection not correctly set $this->Type == "mysql"
This commit is contained in:
parent
56721f1e6e
commit
44405cb359
@ -566,7 +566,12 @@ class egw_db
|
|||||||
$Host = preg_replace('/password=[^ ]+/','password=$Password',$Host); // eg. postgres dsn contains password
|
$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.");
|
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)
|
if ($new_connection)
|
||||||
{
|
{
|
||||||
foreach(get_included_files() as $file)
|
foreach(get_included_files() as $file)
|
||||||
|
Loading…
Reference in New Issue
Block a user