From: Aaron Schulz Date: Thu, 15 Mar 2007 02:34:19 +0000 (+0000) Subject: *Put ['protect'] is isset() to avoid any errors X-Git-Tag: 1.31.0-rc.0~53723 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=8250faf941c12ab02fb9a074ad4861fa9c1b0712;p=lhc%2Fweb%2Fwiklou.git *Put ['protect'] is isset() to avoid any errors --- 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 ) {