Add array type hints to minor methods in the Html class
[lhc/web/wiklou.git] / includes / ProtectionForm.php
index f777a37..1219da5 100644 (file)
@@ -156,7 +156,7 @@ class ProtectionForm {
                } else {
                        $value = $this->mExpirySelection[$action];
                }
-               if ( $value == 'infinite' || $value == 'indefinite' || $value == 'infinity' ) {
+               if ( wfIsInfinity( $value ) ) {
                        $time = wfGetDB( DB_SLAVE )->getInfinity();
                } else {
                        $unix = strtotime( $value );