|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I don't believe I have any hacks in this copy of viewpoll so I think this is something that's there already. I created a poll with no votes recorded and when I went to view the results I got this error: Warning: Division by zero in /home/public_html/test/viewpoll.php on line 75 I'm sure it's a simple fix. [] https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
heh, had a simular error in my pollpal script... I fixed that then fixed the one in viewpoll.php... Change this line: $per = ($thisone/$division); To this one: if ($division <> 0) { $per = ($thisone/$division); } else { $per = 0; } That should do it [] https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|