mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-08-01 22:02:13 +00:00
Fix expiration date check on studs.php
This commit is contained in:
parent
1d5a33b560
commit
779af07c60
1 changed files with 1 additions and 2 deletions
|
|
@ -189,12 +189,11 @@ $slots = $pollService->allSlotsByPollId($poll_id);
|
|||
$votes = $pollService->allVotesByPollId($poll_id);
|
||||
$comments = $pollService->allCommentsByPollId($poll_id);
|
||||
|
||||
|
||||
// Assign data to template
|
||||
$smarty->assign('poll_id', $poll_id);
|
||||
$smarty->assign('poll', $poll);
|
||||
$smarty->assign('title', _('Poll') . ' - ' . $poll->title);
|
||||
$smarty->assign('expired', $poll->end_date < time());
|
||||
$smarty->assign('expired', strtotime($poll->end_date) < time());
|
||||
$smarty->assign('deletion_date', $poll->end_date + PURGE_DELAY * 86400);
|
||||
$smarty->assign('slots', $poll->format === 'D' ? $pollService->splitSlots($slots) : $slots);
|
||||
$smarty->assign('votes', $pollService->splitVotes($votes));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue