Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -335,11 +335,11 @@ |
336 | 336 | if ( $numberInGroup ) { |
337 | 337 | global $wgAutopromote; |
338 | 338 | |
339 | | - if ($group == 'user') { |
| 339 | + if ( $group == 'user' ) { |
340 | 340 | $arr['number'] = SiteStats::users(); |
341 | 341 | |
342 | 342 | // '*' and autopromote groups have no size |
343 | | - } elseif (!($group == '*' || in_array($group, array_keys($wgAutopromote)))) { |
| 343 | + } elseif ( $group !== '*' && !isset( $wgAutopromote[$group] ) ) { |
344 | 344 | $arr['number'] = SiteStats::numberInGroup( $group ); |
345 | 345 | } |
346 | 346 | } |