*Put ['protect'] is isset() to avoid any errors
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2007 02:34:19 +0000 (02:34 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 15 Mar 2007 02:34:19 +0000 (02:34 +0000)
includes/Article.php

index 2ffc3be..3debb17 100644 (file)
@@ -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 ) {