• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot break/continue 1 level in database\DB.php on line 40

#1
[eluser]Webnet[/eluser]
It appears continue was used where it should probably have been 'return' ?

Code:
function &DB;($params = '', $active_record_override = NULL)
{
    // Load the DB config file if a DSN string wasn't passed
    if (is_string($params) AND strpos($params, '://') === FALSE)
    {
        
        $file_path = APPPATH.'config/'.ENVIRONMENT.'/database'.EXT;
        
        if ( ! file_exists($file_path))
        {
            log_message('debug', 'Database config for '.ENVIRONMENT.' environment is not found. Trying global config.');
            $file_path = APPPATH.'config/database'.EXT;
            
            if ( ! file_exists($file_path))
            {
                continue; //THIS IS NOT INSIDE A LOOP
            }
        }


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.