From: Sam Reed Date: Sun, 20 Mar 2011 00:32:28 +0000 (+0000) Subject: Followup r84361, numerical keys ftw X-Git-Tag: 1.31.0-rc.0~31305 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=commitdiff_plain;h=29df5af44e74f77351203da85455152f17f2e4d6;p=lhc%2Fweb%2Fwiklou.git Followup r84361, numerical keys ftw --- 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; }