I am getting this Warning now that I have reset my poll results.
Here is a screenshot of the Warning message,
I will not display the link in this post due to Search Engine issues.
I have checked my results.php folder,
and this is the exact code inside of that specific file:
<dl class="sp-results"> <?php foreach($answers as $key => $answer) : ?> <?php $percentage = round((int)$answer['vote'] / (int)$totalvotes * 100); ?> <dt class="sp-answer"><?php echo $answer['answer']; ?></dt> <dd class="sp-answer-response" style="width:<?php echo $percentage; ?>%"><?php echo $percentage; ?>%</dd> <?php endforeach; ?> </dl> <p class="sp-total"><?php _e('Total votes'); ?>: <?php echo $totalvotes; ?></p>
- The topic ‘[Plugin: Simply Poll] Warning: Division by zero in […]’ is closed to new replies.