Add missing group by from r83849 per Bryan

This commit is contained in:
Sam Reed 2011-03-13 19:35:08 +00:00
parent a463facbd5
commit 886a70a3f7

View file

@ -127,6 +127,8 @@ class ApiQueryAllUsers extends ApiQueryBase {
$this->addWhere( "rc_log_type IS NULL OR rc_log_type != 'newusers'" );
$timestamp = $db->timestamp( wfTimestamp( TS_UNIX ) - $wgActiveUserDays*24*3600 );
$this->addWhere( "rc_timestamp >= {$db->addQuotes( $timestamp )}" );
$this->addOption( 'GROUP BY', 'user_name' );
}
$this->addOption( 'LIMIT', $sqlLimit );