r20474 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20473‎ | r20474 | r20475 >
Date:02:34, 15 March 2007
Author:aaron
Status:old
Tags:
Comment:
*Put ['protect'] is isset() to avoid any errors
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1710,7 +1710,7 @@
17111711 foreach( $limit as $action => $restrictions ) {
17121712 # Check if the group level required to edit also can protect pages
17131713 # Otherwise, people who cannot normally protect can "protect" pages via transclusion
1714 - $cascade = ( $cascade && isset($wgGroupPermissions[$restrictions]) && $wgGroupPermissions[$restrictions]['protect'] );
 1714+ $cascade = ( $cascade && isset($wgGroupPermissions[$restrictions]['protect']) && $wgGroupPermissions[$restrictions]['protect'] );
17151715 }
17161716 # Update restrictions table
17171717 foreach( $limit as $action => $restrictions ) {