From 29df5af44e74f77351203da85455152f17f2e4d6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 20 Mar 2011 00:32:28 +0000 Subject: [PATCH] Followup r84361, numerical keys ftw --- includes/api/ApiQueryUsers.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 114708f6b1..ff4d90783a 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -258,11 +258,9 @@ class ApiQueryUsers extends ApiQueryBase { } $builtGroups = array(); - $i = 0; - foreach( array_merge( $groups, Autopromote::getAutopromoteGroups( $user ) ) as $g ) { + foreach( array_merge( $groups, Autopromote::getAutopromoteGroups( $user ) ) as $i => $group ) { $builtGroups[$i] = array( 'implicit' => '' ); - ApiResult::setContent( $builtGroups[$i], $g ); - $i++; + ApiResult::setContent( $builtGroups[$i], $group ); } return $builtGroups; } -- 2.20.1