Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -258,7 +258,7 @@ |
259 | 259 | # to a semi-protected page. |
260 | 260 | global $wgGroupPermissions; |
261 | 261 | |
262 | | - $edit_restriction = $this->mRestrictions['edit']; |
| 262 | + $edit_restriction = isset( $this->mRestrictions['edit'] ) ? $this->mRestrictions['edit'] : ''; |
263 | 263 | $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade' ); |
264 | 264 | if ($this->mCascade && ($edit_restriction != 'protect') && |
265 | 265 | !(isset($wgGroupPermissions[$edit_restriction]['protect']) && $wgGroupPermissions[$edit_restriction]['protect'] ) ) |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -1447,7 +1447,7 @@ |
1448 | 1448 | |
1449 | 1449 | if( $create_perm ) { |
1450 | 1450 | $params = array("[create=$create_perm] $expiry_description",''); |
1451 | | - $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason ), $params ); |
| 1451 | + $log->addEntry( ( isset( $this->mRestrictions['create'] ) && $this->mRestrictions['create'] ) ? 'modify' : 'protect', $this, trim( $reason ), $params ); |
1452 | 1452 | } else { |
1453 | 1453 | $log->addEntry( 'unprotect', $this, $reason ); |
1454 | 1454 | } |