From 5e7e940726fa25a6ecdac822f699e25b83181f39 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Aug 2008 05:12:59 +0000 Subject: [PATCH] Update for r38533 -- avoid notice spew from groups that have no record for the perm --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index b2791b9f96..2d1238de3a 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2778,7 +2778,7 @@ class User { global $wgGroupPermissions; $allowedGroups = array(); foreach ( $wgGroupPermissions as $group => $rights ) { - if ( $rights[$role] === true ) { + if ( isset( $rights[$role] ) && $rights[$role] ) { $allowedGroups[] = $group; } } -- 2.20.1