dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ca7b1a1
)
Merge "Return array without holes from User::getAllGroups"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Tue, 31 Jul 2018 17:23:42 +0000
(17:23 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 31 Jul 2018 17:23:42 +0000
(17:23 +0000)
includes/user/User.php
patch
|
blob
|
history
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
8ebd2d2
..
5e57a18
100644
(file)
--- a/
includes/user/User.php
+++ b/
includes/user/User.php
@@
-5073,10
+5073,10
@@
class User implements IDBAccessObject, UserIdentity {
*/
public static function getAllGroups() {
global $wgGroupPermissions, $wgRevokePermissions;
- return array_diff(
+ return array_
values( array_
diff(
array_merge( array_keys( $wgGroupPermissions ), array_keys( $wgRevokePermissions ) ),
self::getImplicitGroups()
- );
+ )
)
;
}
/**