Changeset 6463
- Timestamp:
- 12/22/2007 06:24:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/wp-includes/wp-db.php
r6461 r6463 79 79 } 80 80 81 $this->ready = true; 82 81 83 if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') ) 82 84 $this->query("SET NAMES '$this->charset'"); 83 85 84 86 $this->select($dbname); 85 $this->ready = true;86 87 } 87 88 … … 96 97 function select($db) { 97 98 if (!@mysql_select_db($db, $this->dbh)) { 99 $this->ready = false; 98 100 $this->bail(" 99 101 <h1>Can’t select database</h1>
Note: See TracChangeset
for help on using the changeset viewer.