Navigation Menu

Skip to content

Commit

Permalink
Fix broken if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Feb 21, 2018
1 parent 5d55d30 commit 668378e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/steps.php
Expand Up @@ -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']);
Expand Down

0 comments on commit 668378e

Please sign in to comment.