Ticket #28155: 28155.3.diff
File 28155.3.diff, 788 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/wp-db.php
1325 1325 if ( $this->use_mysqli && $this->result instanceof mysqli_result ) { 1326 1326 mysqli_free_result( $this->result ); 1327 1327 $this->result = null; 1328 1329 // Clear out any results from a multi-query 1330 while ( mysqli_more_results( $this->dbh ) ) { 1331 mysqli_next_result( $this->dbh ); 1332 } 1328 if ( empty( $this->dbh ) || !( $this->dbh instanceof mysqli ) ) 1329 return; // Sanity check before using the handle 1330 while ( $this->dbh->more_results() ) 1331 $this->dbh->next_result(); 1333 1332 } else if ( is_resource( $this->result ) ) { 1334 1333 mysql_free_result( $this->result ); 1335 1334 }