diff options
author | thomascube <thomas@roundcube.net> | 2010-09-26 11:17:03 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-09-26 11:17:03 +0000 |
commit | 8603bbba2e0bb3dfe171c0241bf97ab7ef9575fc (patch) | |
tree | 9278d085835bdffddb1854643eb502530e52839f /program/include/rcube_mdb2.php | |
parent | 0911facde954d60ca3124e03b85b3b9b47c3c6b0 (diff) |
Fix base url resolution + better order for condition checks in rcube_mdb2 + updated changelog
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r-- | program/include/rcube_mdb2.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 0769b635e..a2baf33c0 100644 --- a/program/include/rcube_mdb2.php +++ b/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; |