Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975
git-svn-id: http://svn.automattic.com/wordpress/trunk@19074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1386,7 +1386,8 @@ 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( $var_by_ref = get_object_vars( $row ) );
|
||||
$var_by_ref = get_object_vars( $row );
|
||||
$key = array_shift( $var_by_ref );
|
||||
if ( ! isset( $new_array[ $key ] ) )
|
||||
$new_array[ $key ] = $row;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user