summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-02 13:41:37 +0000
committeralecpl <alec@alec.pl>2011-12-02 13:41:37 +0000
commit8b8512fd98d2a5768f0a7f3285fa1b988f0ca851 (patch)
treee47082a395ae57de8116521ecaa1096a24ad9a9d /program/include
parent69f00be516afa8f085d7cc384de9551abf5a7ffe (diff)
- Reset error flag when connecting to (another) database
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_mdb2.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php
index b1a019653..f1669677c 100644
--- a/program/include/rcube_mdb2.php
+++ b/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);