Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975

git-svn-id: http://svn.automattic.com/wordpress/trunk@18998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-10-18 20:44:39 +00:00
parent 6623ea4b4a
commit 67661f7181
4 changed files with 4 additions and 4 deletions

View File

@@ -1369,7 +1369,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;
}