Changeset 7eaf7ad in github


Ignore:
Timestamp:
Feb 14, 2008 6:12:23 PM (5 years ago)
Author:
till <till@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
5998438
Parents:
6b9e4a2
Message:
  • small cs fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_mdb2.inc

    r3afd87b r7eaf7ad  
    9595    { 
    9696    // Use persistent connections if available 
    97     $dbh = MDB2::connect($dsn, array('persistent' => $this->db_pconn, 'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL)); 
    98  
    99     if (PEAR::isError($dbh)) 
     97    $dbh = MDB2::connect($dsn, 
     98      array('persistent' => $this->db_pconn, 
     99        'portability' => MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL)); 
     100 
     101    if (MDB2::isError($dbh)) 
    100102      { 
    101103      $this->db_error = TRUE; 
    102104      $this->db_error_msg = $dbh->getMessage(); 
    103105       
    104       raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, 
    105                         'message' => $dbh->getUserInfo()), TRUE, FALSE); 
     106      raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 
     107        'file' => __FILE__, 'message' => $dbh->getUserInfo()), TRUE, FALSE); 
    106108      } 
    107109    else if ($this->db_provider=='sqlite') 
Note: See TracChangeset for help on using the changeset viewer.