includes/dbal.php
changeset 352 9d7225c0db6d
parent 348 87e08a6e4fec
child 374 5c740e430a05
equal deleted inserted replaced
351:8978cb3541ca 352:9d7225c0db6d
   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   }