From eaf7243c5f9d283deb62d2fbca41504d1e605459 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 3 Jan 2009 16:33:15 +0000 Subject: [PATCH] (bug 16507) Not setting "other time" on creation unprotection error removed --- includes/ProtectionForm.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1