mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
83fbd4e36b
commit
2ad9865886
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user