From 886a70a3f7b25bf5c6ed0359c62ea578100d5264 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 13 Mar 2011 19:35:08 +0000 Subject: [PATCH] Add missing group by from r83849 per Bryan --- includes/api/ApiQueryAllUsers.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 12ec64459f..e685e7738f 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -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 ); -- 2.20.1