From 8250faf941c12ab02fb9a074ad4861fa9c1b0712 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 15 Mar 2007 02:34:19 +0000 Subject: [PATCH] *Put ['protect'] is isset() to avoid any errors --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 2ffc3be292..3debb17315 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1710,7 +1710,7 @@ class Article { foreach( $limit as $action => $restrictions ) { # Check if the group level required to edit also can protect pages # Otherwise, people who cannot normally protect can "protect" pages via transclusion - $cascade = ( $cascade && isset($wgGroupPermissions[$restrictions]) && $wgGroupPermissions[$restrictions]['protect'] ); + $cascade = ( $cascade && isset($wgGroupPermissions[$restrictions]['protect']) && $wgGroupPermissions[$restrictions]['protect'] ); } # Update restrictions table foreach( $limit as $action => $restrictions ) { -- 2.20.1