Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -127,6 +127,8 @@ |
128 | 128 | $this->addWhere( "rc_log_type IS NULL OR rc_log_type != 'newusers'" ); |
129 | 129 | $timestamp = $db->timestamp( wfTimestamp( TS_UNIX ) - $wgActiveUserDays*24*3600 ); |
130 | 130 | $this->addWhere( "rc_timestamp >= {$db->addQuotes( $timestamp )}" ); |
| 131 | + |
| 132 | + $this->addOption( 'GROUP BY', 'user_name' ); |
131 | 133 | } |
132 | 134 | |
133 | 135 | $this->addOption( 'LIMIT', $sqlLimit ); |