More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2010-07-25 07:35:59 +00:00
parent 7ffe984f8e
commit 65c1243ce3
6 changed files with 7 additions and 6 deletions

View File

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