diff options
Diffstat (limited to 'Vote.php')
-rw-r--r-- | Vote.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -78,6 +78,10 @@ class VoteHooks { array_push($lines, ['error' => $msg('vote-error-invalid-date'), 'line' => $line]); continue; } + if ($endDate && $vote['date'] > $endDate) { + array_push($lines, ['error' => $msg('vote-error-too-late'), 'line' => $line]); + continue; + } if (!in_array($vote['vote'], self::$options)) { array_push($lines, ['error' => $msg('vote-error-invalid-vote', '(YES, NO, ABSTAIN)'), 'line' => $line]); continue; |