From 779af07c6099bd709661b11da056294990dfd354 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Fri, 13 Mar 2015 12:56:45 +0100 Subject: [PATCH] Fix expiration date check on studs.php --- studs.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/studs.php b/studs.php index ddfc2b3..281fdc9 100644 --- a/studs.php +++ b/studs.php @@ -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));