Index: trunk/phase3/includes/specials/SpecialBlock.php |
— | — | @@ -215,9 +215,15 @@ |
216 | 216 | $fields['HardBlock']['default'] = !$block->mAnonOnly; |
217 | 217 | $fields['CreateAccount']['default'] = $block->mCreateAccount; |
218 | 218 | $fields['AutoBlock']['default'] = $block->mEnableAutoblock; |
219 | | - $fields['DisableEmail']['default'] = $block->mBlockEmail; |
220 | | - $fields['HideUser']['default'] = $block->mHideName; |
221 | | - $fields['DisableUTEdit']['default'] = !$block->mAllowUsertalk; |
| 219 | + if( isset( $fields['DisableEmail'] ) ){ |
| 220 | + $fields['DisableEmail']['default'] = $block->mBlockEmail; |
| 221 | + } |
| 222 | + if( isset( $fields['HideUser'] ) ){ |
| 223 | + $fields['HideUser']['default'] = $block->mHideName; |
| 224 | + } |
| 225 | + if( isset( $fields['DisableUTEdit'] ) ){ |
| 226 | + $fields['DisableUTEdit']['default'] = !$block->mAllowUsertalk; |
| 227 | + } |
222 | 228 | $fields['Reason']['default'] = $block->mReason; |
223 | 229 | $fields['AlreadyBlocked']['default'] = true; |
224 | 230 | |