bug-827 changed if to max ;-)
authordirk <beliebige_email_adresse@fidocon.de>
Tue, 25 Oct 2011 23:17:17 +0000 (01:17 +0200)
committerdirk <beliebige_email_adresse@fidocon.de>
Tue, 25 Oct 2011 23:17:17 +0000 (01:17 +0200)
includes/wot.inc.php

index 275b3a0..19c27a1 100644 (file)
 
        function calc_experience ($row,&$points,&$experience,&$sum_experience)
        {
-               if ($row['awarded'] < $row['points'])           
-                       $apoints += $row['points'];
-               else
-                       $apoints += $row['awarded'];
+               $apoints = max($row['points'], $row['awarded']);
 
                $points += $apoints;