Ignore:
Timestamp:
Mar 14, 2006 4:13:07 PM (7 years ago)
Author:
roundcube
Message:

Improved error handling in DB connection failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r159 r164  
    7575  $DB = new rcube_db($CONFIG['db_dsnw'], $CONFIG['db_dsnr']); 
    7676  $DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql'; 
     77  $DB->db_connect('w'); 
     78     
    7779 
    7880  // we can use the database for storing session data 
    7981  // session queries do not work with MDB2 
    80   if ($CONFIG['db_backend']!='mdb2' && is_object($DB)) 
     82  if ($CONFIG['db_backend']!='mdb2' && !$DB->is_error()) 
    8183    include_once('include/session.inc'); 
    8284 
Note: See TracChangeset for help on using the changeset viewer.