Changeset 6464
- Timestamp:
- 12/22/07 06:24:48 (1 year ago)
- Files:
-
- trunk/wp-includes/wp-db.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/wp-db.php
r6460 r6464 77 77 } 78 78 79 $this->ready = true; 80 79 81 if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') ) 80 82 $this->query("SET NAMES '$this->charset'"); 81 83 82 84 $this->select($dbname); 83 $this->ready = true;84 85 } 85 86 … … 114 115 function select($db) { 115 116 if (!@mysql_select_db($db, $this->dbh)) { 117 $this->ready = false; 116 118 $this->bail(" 117 119 <h1>Can’t select database</h1>
