Add missing group by from r83849 per Bryan
This commit is contained in:
parent
a463facbd5
commit
886a70a3f7
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue