diff options
Diffstat (limited to 'program/lib/Roundcube/rcube_db.php')
-rw-r--r-- | program/lib/Roundcube/rcube_db.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/lib/Roundcube/rcube_db.php b/program/lib/Roundcube/rcube_db.php index 4d4f6dcea..ee063c5c0 100644 --- a/program/lib/Roundcube/rcube_db.php +++ b/program/lib/Roundcube/rcube_db.php @@ -288,9 +288,11 @@ class rcube_db } else if ($mode == 'r') { // connected to db with the same or "higher" mode for this table - $db_mode = $this->table_connections[$table]; - if ($db_mode == 'w' && empty($this->options['dsnw_noread'])) { - $mode = $db_mode; + if (isset($this->table_connections[$table])) { + $db_mode = $this->table_connections[$table]; + if ($db_mode == 'w' && empty($this->options['dsnw_noread'])) { + $mode = $db_mode; + } } } } |