IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Event Information Bug
Bobert
post Sep 22 2010, 10:08 PM
Post #1


Il san
Group Icon

Group: Nobles
Posts: 191
Joined: 4-July 06
From: Boca Raton, Fl
Member No.: 91
Characters: Bobert, Vlakir



Don't know where else to put this, but if you look at the event information tab on a users page, and they haven't participated yet (like bloodlusts for me), it displays a division by zero error. I've seen this for other events too.

For each event I would do:
CODE
if ($carnage_participation > 0) { echo ceil(($win / $carnage_participation)*100) }

OR
CODE
echo (($carnage_participation>0) ? ceil(($win / $carnage_participation)*100) : 0)


Other than that, I love the page view. smile.gif


--------------------

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 24th June 2017 - 08:59 AM
Nexus Forums is part of: Nexus Atlas © all rights reserved.