]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/wp-db.php
Wordpress 3.0.1
[autoinstalls/wordpress.git] / wp-includes / wp-db.php
index 6630efcf31e30d5c1d0af2634b51b14588eebe71..61f6d9aab4faa0072b1441bd8a927461c77c9c72 100644 (file)
@@ -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;
                        }