PDA

View Full Version : Reputation Bug - Divide by Zero


Crazy Squirrel
Wed 18th Jun '03, 5:29am
Set my reputation to -10 and try and then try add reputation to someone

Warning: Division by zero in /home/forums/web/reputation.php on line 128

Thanks for adding Reputation to this user. May you be lucky enough to receive the same Reputation back in turn (thats as much as i managed to copy out - the rest of the message seems fine).

// for every certain number of posts, gain a point
$postfactor = intval($bbuserinfo['posts'] / $vboptions['pcpower']);

if ($postfactor < 1)
{
$postfactor = 0;
}
I'm guessing it's just cosmetic, as long as $vboptions['pcpower'] is supposed to be 0 for users with negative rep.


Thxs to the infamous Rel@x ;)