diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 2cc9e30a21..8e58009f31 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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; }