includes/dbal.php
changeset 353 2398420f48e7
parent 352 9d7225c0db6d
child 374 5c740e430a05
equal deleted inserted replaced
350:dd7cbc97f681 353:2398420f48e7
   197     $this->debug = ( defined('ENANO_DEBUG') );
   197     $this->debug = ( defined('ENANO_DEBUG') );
   198     
   198     
   199     $q = $this->sql_query('USE `'.$dbname.'`;');
   199     $q = $this->sql_query('USE `'.$dbname.'`;');
   200     
   200     
   201     if ( !$q )
   201     if ( !$q )
       
   202     {
       
   203       if ( $manual_credentials )
       
   204         return false;
   202       $this->_die('The database could not be selected.');
   205       $this->_die('The database could not be selected.');
       
   206     }
   203     
   207     
   204     // We're in!
   208     // We're in!
   205     $this->disable_errorhandler();
   209     $this->disable_errorhandler();
   206     return true;
   210     return true;
   207   }
   211   }