findById((int)($_POST['threadid'] ?? 0)); if (is_null($poll)) { error(404, true); } if ($poll->isClosed()) { error(403, true); } $vote = $poll->vote(); if (!isset($_POST['vote']) || !is_number($_POST['vote'])) { ?> Please select an option.
$choice) { ?>



addVote($Viewer->id(), $response)) { error(0, true); } $vote = $poll->vote(); // need to refresh the results to take the vote into account if ($response !== 0) { $vote[$response]['answer'] = '=> ' . $vote[$response]['answer']; } ?>
Votes: total()) ?>