Make WordPress Core


Ignore:
Timestamp:
10/28/2011 03:48:44 PM (13 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975

File:
1 edited

Legend:

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

    r19060 r19074  
    13871387            // (Duplicates are discarded)
    13881388            foreach ( $this->last_result as $row ) {
    1389                 $key = array_shift( $var_by_ref = get_object_vars( $row ) );
     1389                $var_by_ref = get_object_vars( $row );
     1390                $key = array_shift( $var_by_ref );
    13901391                if ( ! isset( $new_array[ $key ] ) )
    13911392                    $new_array[ $key ] = $row;
Note: See TracChangeset for help on using the changeset viewer.