[Svn] r3982 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Tue Sep 21 20:47:55 CEST 2010


Author: thomasb
Date: 2010-09-21 13:47:55 -0500 (Tue, 21 Sep 2010)
New Revision: 3982

Modified:
   trunk/roundcubemail/program/include/rcube_mdb2.php
Log:
Fix db_mode check in insert_id()

Modified: trunk/roundcubemail/program/include/rcube_mdb2.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_mdb2.php	2010-09-21 08:41:59 UTC (rev 3981)
+++ trunk/roundcubemail/program/include/rcube_mdb2.php	2010-09-21 18:47:55 UTC (rev 3982)
@@ -123,9 +123,11 @@
     {
         // Already connected
         if ($this->db_connected) {
-            // no replication, current connection is ok
-            if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr)
+            // 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')

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list