Make WordPress Core


Ignore:
Timestamp:
11/12/2010 10:40:43 AM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r16320 r16321  
    10161016     */
    10171017    function flush() {
    1018         @mysql_free_result( $this->_mysql_last_result );
     1018        if ( is_resource( $this->_mysql_last_result ) )
     1019            mysql_free_result( $this->_mysql_last_result );
    10191020        $this->col_info    = null;
    10201021        $this->last_query  = null;
Note: See TracChangeset for help on using the changeset viewer.