From: Aaron Schulz Date: Sat, 3 Jan 2009 16:33:15 +0000 (+0000) Subject: (bug 16507) Not setting "other time" on creation unprotection error removed X-Git-Tag: 1.31.0-rc.0~43579 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=eaf7243c5f9d283deb62d2fbca41504d1e605459;p=lhc%2Fweb%2Fwiklou.git (bug 16507) Not setting "other time" on creation unprotection error removed --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index a957a70a19..372edfcd55 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -242,6 +242,8 @@ class ProtectionForm { $expiry = array(); foreach( $this->mApplicableTypes as $action ) { $expiry[$action] = $this->getExpiry( $action ); + if( empty($this->mRestrictions[$action]) ) + continue; // unprotected if ( !$expiry[$action] ) { $this->show( wfMsg( 'protect_expiry_invalid' ) ); return false;