summaryrefslogtreecommitdiff
path: root/program/include/rcube_mdb2.inc
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-14 23:12:23 +0000
committertill <till@php.net>2008-02-14 23:12:23 +0000
commit7eaf7ad543c92c8a8bcccf921bade6378556ed8b (patch)
treed4501c0ec209a54ec11c3f030f28edb76bead793 /program/include/rcube_mdb2.inc
parent6b9e4a21aada9ab70b9c6452957810fd1cd1114e (diff)
* small cs fixes
Diffstat (limited to 'program/include/rcube_mdb2.inc')
-rw-r--r--program/include/rcube_mdb2.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/program/include/rcube_mdb2.inc b/program/include/rcube_mdb2.inc
index 8628bc17c..63d156a08 100644
--- a/program/include/rcube_mdb2.inc
+++ b/program/include/rcube_mdb2.inc
@@ -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->getUserInfo()), TRUE, FALSE);
+ raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__,
+ 'file' => __FILE__, 'message' => $dbh->getUserInfo()), TRUE, FALSE);
}
else if ($this->db_provider=='sqlite')
{