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:
parent
9404ce9a12
commit
92b8c22e03
|
@ -1015,7 +1015,8 @@ class wpdb {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function flush() {
|
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->col_info = null;
|
||||||
$this->last_query = null;
|
$this->last_query = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue