Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -1030,9 +1030,8 @@ |
1031 | 1031 | |
1032 | 1032 | function do_active_users_init() { |
1033 | 1033 | global $wgDatabase; |
1034 | | - $activeUsers = $wgDatabase->selectField( 'site_stats', 'ss_active_users', |
1035 | | - array( 'ss_row_id' => 1 ), __METHOD__ ); |
1036 | | - if( $activeUsers === -1 ) { |
| 1034 | + $activeUsers = $wgDatabase->selectField( 'site_stats', 'ss_active_users', false, __METHOD__ ); |
| 1035 | + if( $activeUsers == -1 ) { |
1037 | 1036 | $activeUsers = $wgDatabase->selectField( 'recentchanges', |
1038 | 1037 | 'COUNT( DISTINCT rc_user_text )', |
1039 | 1038 | array( 'rc_user != 0', 'rc_bot' => 0, "rc_log_type != 'newusers'" ), __METHOD__ |