X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/4f9d63e13cd8c6e275797c75b401b074b82937bc..a01a150d87a096c70b6ec80332b7ce89c943eefe:/wp-includes/wp-db.php diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 6630efcf..61f6d9aa 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1402,7 +1402,7 @@ class wpdb { // Return an array of row objects with keys from column 1 // (Duplicates are discarded) foreach ( $this->last_result as $row ) { - $key = array_shift( get_object_vars( $row ) ); + $key = array_shift( $var_by_ref = get_object_vars( $row ) ); if ( ! isset( $new_array[ $key ] ) ) $new_array[ $key ] = $row; }