Changeset 69f00be in github


Ignore:
Timestamp:
Dec 2, 2011 8:32:28 AM (19 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
8b8512f
Parents:
4f8be46f
Message:
  • Fallback to write-master when readonly database fails
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_mdb2.php

    raa546e1 r69f00be  
    146146        $this->db_connected = !PEAR::isError($this->db_handle); 
    147147 
     148        // use write-master when read-only fails 
     149        if (!$this->db_connected && $mode == 'r') { 
     150            $mode = 'w'; 
     151            $this->db_handle    = $this->dsn_connect($this->db_dsnw); 
     152            $this->db_connected = !PEAR::isError($this->db_handle); 
     153        } 
     154 
    148155        if ($this->db_connected) 
    149156            $this->db_mode = $mode; 
Note: See TracChangeset for help on using the changeset viewer.