X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Finclude%2Frcube_mdb2.inc;h=0b2feffbe1839f1f2fc9824210d55e3eaa750f5b;hb=d326b0c67bb536d2296004c927e89ab8c4a548b5;hp=02206c62b8a91df50aef17ff9df19a13f15aef45;hpb=ade1655456ffdb799be8081f57ec90a408b99dd9;p=roundcube.git diff --git a/program/include/rcube_mdb2.inc b/program/include/rcube_mdb2.inc index 02206c6..0b2feff 100644 --- a/program/include/rcube_mdb2.inc +++ b/program/include/rcube_mdb2.inc @@ -16,7 +16,7 @@ | Author: Lukas Kahwe Smith | +-----------------------------------------------------------------------+ - $Id: rcube_mdb2.inc 850 2007-10-03 00:13:32Z ihug $ + $Id: rcube_mdb2.inc 1084 2008-02-14 23:12:23Z till $ */ @@ -94,15 +94,17 @@ class rcube_mdb2 function dsn_connect($dsn) { // Use persistent connections if available - $dbh = MDB2::connect($dsn, array('persistent' => $this->db_pconn, 'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL)); + $dbh = MDB2::connect($dsn, + array('persistent' => $this->db_pconn, + 'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL)); - if (PEAR::isError($dbh)) + if (MDB2::isError($dbh)) { $this->db_error = TRUE; $this->db_error_msg = $dbh->getMessage(); - raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, - 'message' => $dbh->getMessage()), TRUE, FALSE); + raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, + 'file' => __FILE__, 'message' => $dbh->getUserInfo()), TRUE, FALSE); } else if ($this->db_provider=='sqlite') {