summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-02 13:41:37 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-02 13:41:37 +0000
commitdf4f19ef692e9716a293dc874dbd7b5a9d345e3d (patch)
tree3cb31fdc1018d2248a8649c0bdc947ea3d19895d /roundcubemail
parent6525260278931e678f46be5a5a76ab67372a7b34 (diff)
- Reset error flag when connecting to (another) database
git-svn-id: https://svn.roundcube.net/trunk@5529 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/program/include/rcube_mdb2.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php
index b1a019653..f1669677c 100644
--- a/roundcubemail/program/include/rcube_mdb2.php
+++ b/roundcubemail/program/include/rcube_mdb2.php
@@ -91,6 +91,8 @@ class rcube_mdb2
$db_options['disable_smart_seqname'] = true;
$db_options['seqname_format'] = '%s';
}
+ $this->db_error = false;
+ $this->db_error_msg = null;
$dbh = MDB2::connect($dsn, $db_options);