diff --git a/sections/forums/poll_vote.php b/sections/forums/poll_vote.php index 2045753ae..5b5698f61 100644 --- a/sections/forums/poll_vote.php +++ b/sections/forums/poll_vote.php @@ -10,10 +10,10 @@ namespace Gazelle; $threadId = (int)($_POST['threadid'] ?? 0); $poll = new Manager\ForumPoll()->findById($threadId); if (is_null($poll)) { - Error404::error(); + Error404::error("No reference to that poll found"); } if ($poll->isClosed()) { - Error403::error(); + Error403::error("Sorry, the poll is closed"); } $answerList = $poll->answerList(); @@ -24,12 +24,12 @@ if (!isset($_POST['vote']) || !is_number($_POST['vote'])) {
| {{ loop.index }} | {{ entry.user_id|user_url }} | {{ entry.entry_count|number_format }} |
| {{ contest_rank.position|number_format }} | {{ viewer.id|user_url }} | {{ contest_rank.total|number_format }} |
{{ poll.question }}
- {% if poll.response(viewer) is not null %} +{% if poll.response(viewer) is not null %}