Fix db_mode check in insert_id()

release-0.6
thomascube 14 years ago
parent 1151581366
commit cb2bc809ef

@ -123,9 +123,11 @@ class rcube_mdb2
{ {
// Already connected // Already connected
if ($this->db_connected) { if ($this->db_connected) {
// no replication, current connection is ok // no replication, current connection is ok for read and write
if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr) if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr) {
$this->db_mode = 'w';
return; return;
}
// connected to read-write db, current connection is ok // connected to read-write db, current connection is ok
if ($this->db_mode == 'w') if ($this->db_mode == 'w')

Loading…
Cancel
Save