Index: trunk/phase3/includes/User.php |
— | — | @@ -2778,7 +2778,7 @@ |
2779 | 2779 | global $wgGroupPermissions; |
2780 | 2780 | $allowedGroups = array(); |
2781 | 2781 | foreach ( $wgGroupPermissions as $group => $rights ) { |
2782 | | - if ( $rights[$role] === true ) { |
| 2782 | + if ( isset( $rights[$role] ) && $rights[$role] ) { |
2783 | 2783 | $allowedGroups[] = $group; |
2784 | 2784 | } |
2785 | 2785 | } |