Changeset 6464

Show
Ignore:
Timestamp:
12/22/07 06:24:48 (1 year ago)
Author:
ryan
Message:

Don't block SET NAMES query. Props g30rg3x for the find. fixes #5503 for 2.4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/wp-db.php

    r6460 r6464  
    7777        } 
    7878 
     79        $this->ready = true; 
     80 
    7981        if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') ) 
    8082            $this->query("SET NAMES '$this->charset'"); 
    8183 
    8284        $this->select($dbname); 
    83         $this->ready = true; 
    8485    } 
    8586 
     
    114115    function select($db) { 
    115116        if (!@mysql_select_db($db, $this->dbh)) { 
     117            $this->ready = false; 
    116118            $this->bail(" 
    117119<h1>Can&#8217;t select database</h1>