Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/lib/Roundcube/rcube_db.php8
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;
+ }
}
}
}