Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -242,6 +242,8 @@ |
243 | 243 | $expiry = array(); |
244 | 244 | foreach( $this->mApplicableTypes as $action ) { |
245 | 245 | $expiry[$action] = $this->getExpiry( $action ); |
| 246 | + if( empty($this->mRestrictions[$action]) ) |
| 247 | + continue; // unprotected |
246 | 248 | if ( !$expiry[$action] ) { |
247 | 249 | $this->show( wfMsg( 'protect_expiry_invalid' ) ); |
248 | 250 | return false; |