mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
fix not working sharing if primary DB node has failed
This commit is contained in:
parent
314fe706f5
commit
e805a02ef3
@ -432,7 +432,7 @@ class Db
|
|||||||
*/
|
*/
|
||||||
protected function _connect($Host)
|
protected function _connect($Host)
|
||||||
{
|
{
|
||||||
if (!$this->Link_ID)
|
if (!$this->Link_ID || $Host != $this->Link_ID->host)
|
||||||
{
|
{
|
||||||
$Database = $User = $Password = $Port = $Type = '';
|
$Database = $User = $Password = $Port = $Type = '';
|
||||||
foreach(array('Database','User','Password','Port','Type') as $name)
|
foreach(array('Database','User','Password','Port','Type') as $name)
|
||||||
|
Loading…
Reference in New Issue
Block a user