mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Only mysql_free_result if we have a valid resource, and remove error suppression there. see #15402.
git-svn-id: https://develop.svn.wordpress.org/trunk@16321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1015,7 +1015,8 @@ class wpdb {
|
||||
* @return void
|
||||
*/
|
||||
function flush() {
|
||||
@mysql_free_result( $this->_mysql_last_result );
|
||||
if ( is_resource( $this->_mysql_last_result ) )
|
||||
mysql_free_result( $this->_mysql_last_result );
|
||||
$this->col_info = null;
|
||||
$this->last_query = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user