Only mysql_free_result if we have a valid resource, and remove error suppression there. see #15402.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-12 10:40:43 +00:00
parent 83fbd4e36b
commit 2ad9865886

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