summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_mdb2.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-26 11:17:03 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-26 11:17:03 +0000
commitbac575abf1b61f8d7e28eee97b7e87dc9704a4db (patch)
treeeab033434c46f9e41ebcbf6a9e39ae1715950688 /roundcubemail/program/include/rcube_mdb2.php
parent5ae1223029534b93f6811f393c2af5b0f52a4fa2 (diff)
Fix base url resolution + better order for condition checks in rcube_mdb2 + updated changelog
git-svn-id: https://svn.roundcube.net/trunk@3993 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_mdb2.php')
-rw-r--r--roundcubemail/program/include/rcube_mdb2.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php
index 0769b635e..a2baf33c0 100644
--- a/roundcubemail/program/include/rcube_mdb2.php
+++ b/roundcubemail/program/include/rcube_mdb2.php
@@ -123,16 +123,16 @@ class rcube_mdb2
{
// Already connected
if ($this->db_connected) {
+ // connected to read-write db, current connection is ok
+ if ($this->db_mode == 'w')
+ return;
+
// no replication, current connection is ok for read and write
if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr) {
$this->db_mode = 'w';
return;
}
- // connected to read-write db, current connection is ok
- if ($this->db_mode == 'w')
- return;
-
// Same mode, current connection is ok
if ($this->db_mode == $mode)
return;