Keep getting this error

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Keep getting this error

Postby spleeneater » Mon Oct 23, 2006 12:40 pm

when looking at my members list i keep getting this error
Code: Select all
Warning: Division by zero in //wowroster/memberslist.php on line 676


anyone know how to fix this?

Roster
Last edited by spleeneater on Mon Oct 23, 2006 12:40 pm, edited 1 time in total.
Image
User avatar
spleeneater
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Thu Jul 20, 2006 1:37 am

Keep getting this error

Postby zanix » Mon Oct 23, 2006 1:51 pm

LoL, someone has 0 exp

Open memberslist.php
Find
Code: Select all
$percent_exp =  round(($current/$max)*100); 

Replace with
Code: Select all
if( $max )
{
    
$percent_exp =  round(($current/$max)*100);
}
else
{
    
$percent_exp 0;
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Keep getting this error

Postby zanix » Wed Oct 25, 2006 2:00 pm

Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron