diff options
| author | Martin Fischer <martin@push-f.com> | 2022-10-08 09:18:02 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2022-10-08 09:18:23 +0200 | 
| commit | 303edfc83a06766f0a1526810ac697e6e5e5d2e5 (patch) | |
| tree | 6092bc1991bc734f2a1257a159b33bf90595febd /Vote.php | |
| parent | ddc0fd1c8399c225f9a198614d6f1dfc98bdcbdc (diff) | |
don't count votes after end date
Thanks to waldyrious for the suggestion!
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;  | 
