Attempting to view results before any votes have been cast results in a divide by zero error:
Warning: Division by zero in /wordpress-install/wp-content/plugins/pollin/poll_result.php on line 38
Divide by Zero
(3 posts) (3 voices)-
Posted 2 years ago #
-
Thanks for letting me know - I'll look into it.Posted 2 years ago #
-
you can fix this by changing line 38 of the file poll_result.php from
$percent = intval(($ans->votes / $total) * 100);TO
if($total) {
$percent = intval(($ans->votes / $total) * 100);
} else {
$percent=0;
}Posted 2 years ago #
Reply
You must log in to post.