Ignore:
Timestamp:
Sep 21, 2010 2:47:55 PM (3 years ago)
Author:
thomasb
Message:

Fix db_mode check in insert_id()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_mdb2.php

    r3978 r3982  
    124124        // Already connected 
    125125        if ($this->db_connected) { 
    126             // no replication, current connection is ok 
    127             if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr) 
     126            // no replication, current connection is ok for read and write 
     127            if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr) { 
     128                $this->db_mode = 'w'; 
    128129                return; 
     130            } 
    129131 
    130132            // connected to read-write db, current connection is ok 
Note: See TracChangeset for help on using the changeset viewer.