WordPress.org

Make WordPress Core

Changeset 13161


Ignore:
Timestamp:
02/15/10 10:00:39 (4 years ago)
Author:
nacin
Message:

Init array in wpdb:get_results() and get_col_info(). Props UnderWordPressure, miqrogroove, fixes #10607

File:
1 edited

Legend:

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

    r13121 r13161  
    10601060            return null; 
    10611061 
     1062        $new_array = array(); 
    10621063        if ( $output == OBJECT ) { 
    10631064            // Return an integer-keyed array of row objects 
     
    11041105            if ( $col_offset == -1 ) { 
    11051106                $i = 0; 
     1107                $new_array = array(); 
    11061108                foreach( (array) $this->col_info as $col ) { 
    11071109                    $new_array[$i] = $col->{$info_type}; 
     
    11741176     * @return WP_Error 
    11751177     */ 
    1176     function check_database_version() 
    1177     { 
     1178    function check_database_version() { 
    11781179        global $wp_version, $required_mysql_version; 
    11791180        // Make sure the server has the required MySQL version 
Note: See TracChangeset for help on using the changeset viewer.