* small cs fixes

release-0.6
till 17 years ago
parent 6b9e4a21aa
commit 7eaf7ad543

@ -94,15 +94,17 @@ class rcube_mdb2
function dsn_connect($dsn) function dsn_connect($dsn)
{ {
// Use persistent connections if available // 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 = TRUE;
$this->db_error_msg = $dbh->getMessage(); $this->db_error_msg = $dbh->getMessage();
raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__,
'message' => $dbh->getUserInfo()), TRUE, FALSE); 'file' => __FILE__, 'message' => $dbh->getUserInfo()), TRUE, FALSE);
} }
else if ($this->db_provider=='sqlite') else if ($this->db_provider=='sqlite')
{ {

Loading…
Cancel
Save