Changeset 6463

Show
Ignore:
Timestamp:
12/22/07 06:24:10 (10 months ago)
Author:
ryan
Message:

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

Files:

Legend:

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

    r6461 r6463  
    7979        } 
    8080 
     81        $this->ready = true; 
     82 
    8183        if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') ) 
    8284            $this->query("SET NAMES '$this->charset'"); 
    8385 
    8486        $this->select($dbname); 
    85         $this->ready = true; 
    8687    } 
    8788 
     
    9697    function select($db) { 
    9798        if (!@mysql_select_db($db, $this->dbh)) { 
     99            $this->ready = false; 
    98100            $this->bail(" 
    99101<h1>Can&#8217;t select database</h1>