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:
Andrew Nacin 2010-11-12 10:40:43 +00:00
parent 9404ce9a12
commit 92b8c22e03
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}