* (bug 26560) On allusers if limit < total number of users, last user gets duplicate
If $lastUserData is set to null, it won't get added again!
This commit is contained in:
parent
df0a765cfe
commit
22832a2527
2 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
|
|||
* (bug 25767) Add userrights properties to allusers and users query lists
|
||||
* (bug 26558) list=allusers auprop=groups does not list groups a user is automatically a member of
|
||||
* (bug 26559) list=allusers auprop=rights does not match list=users usprop=rights
|
||||
* (bug 26560) On allusers if limit < total number of users, last user gets duplicate
|
||||
|
||||
=== Languages updated in 1.18 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -160,6 +160,9 @@ class ApiQueryAllUsers extends ApiQueryBase {
|
|||
if ( is_array( $lastUserData ) ) {
|
||||
$fit = $result->addValue( array( 'query', $this->getModuleName() ),
|
||||
null, $lastUserData );
|
||||
|
||||
$lastUserData = null;
|
||||
|
||||
if ( !$fit ) {
|
||||
$this->setContinueEnumParameter( 'from',
|
||||
$this->keyToTitle( $lastUserData['name'] ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue