* (bug 20765) Special:ListGroupRights no longer misses addables and removables groups...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 13 Dec 2009 20:17:09 +0000 (20:17 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 13 Dec 2009 20:17:09 +0000 (20:17 +0000)
commit79148ada186aa0f24eaba750e23eef9e153a4bc4
treed70256739aac02ffbe01619f010375a704a9b9b1
parentdb12157c65f79c7a3c41c18925f002766e069829
* (bug 20765) Special:ListGroupRights no longer misses addables and removables groups if there are duplicate entries
I could reproduce the problem locally, but since I don't know the exact issue on the Polish Wikipedia, I suspect this is this one:
array_unique() doesn't change keys, so if you have:
array(
 0 => 'One',
 1 => 'One',
 2 => 'Two'
)
you'll get after array_unique():
array(
 0 => 'One',
 2 => 'Two'
)
which confuses Language::listToText() since it expects consecutive keys
RELEASE-NOTES
includes/specials/SpecialListgrouprights.php