From dd22587268f1ec5ae820a6c40c4d5ab8133f7ed1 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 21 Jun 2018 16:08:56 -0400 Subject: [PATCH] Fix Special:Userrights temp groups with no non-temp groups Special:Userrights was only checking the count of non-temporary groups when deciding whether to show the list of temporary and non-temporary groups. It needs to check both. Bug: T197860 Change-Id: Ie8a9caad01f1a610584fb4a1272ad3800e9c8e6a --- includes/specials/SpecialUserrights.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 22c6afeefd..0a35178db7 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -658,7 +658,7 @@ class UserrightsPage extends SpecialPage { )->escaped(); $grouplist = ''; - $count = count( $list ); + $count = count( $list ) + count( $tempList ); if ( $count > 0 ) { $grouplist = $this->msg( 'userrights-groupsmember' ) ->numParams( $count ) -- 2.20.1