From 668378e2c39547ef55d3c5c6f9518cf55c5b8971 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 21 Feb 2018 18:30:24 +0000 Subject: [PATCH] Fix broken if statement. --- web/steps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/steps.php b/web/steps.php index dbeb349..658c935 100644 --- a/web/steps.php +++ b/web/steps.php @@ -29,7 +29,7 @@ function petition_form_intro() { $maximum = 'for up to 12 months'; if (array_key_exists('date', $deadline_limits)) { $maximum = 'until ' + date('jS F Y', strtotime($deadline_limits['date'])); - if (array_key_exists('weeks', $deadline_limits)) { + } elseif (array_key_exists('weeks', $deadline_limits)) { $maximum = sprintf('for up to %d weeks', $deadline_limits['weeks']); } elseif ($deadline_limits['years'] && $deadline_limits['months']) { $maximum = sprintf('for up to %d year, %d months', $deadline_limits['years'], $deadline_limits['months']);