mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@18998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user