Make WordPress Core

Ticket #21533: 21533.patch

File 21533.patch, 595 bytes (added by Viper007Bond, 13 years ago)
  • wp-includes/wp-db.php

     
    563563                if ( 'col_info' == $var )
    564564                        $this->load_col_info();
    565565
     566                if ( ! isset( $this->$var ) )
     567                        return null;
     568
    566569                return $this->$var;
    567570        }
    568571
     
    10761079                $this->last_result = array();
    10771080                $this->col_info    = null;
    10781081                $this->last_query  = null;
    1079                 @mysql_free_result( $this->result );
     1082
     1083                if ( is_resource( $this->result ) )
     1084                        mysql_free_result( $this->result );
    10801085        }
    10811086
    10821087        /**