summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authordirk <beliebige_email_adresse@fidocon.de>2011-10-26 01:17:17 +0200
committerdirk <beliebige_email_adresse@fidocon.de>2011-10-26 01:17:17 +0200
commitf5ae2d5243bd2f351eafa8ad7a07a11050bfdb50 (patch)
tree3c5c57ff8a61a56e5234eca5b60c3eca5e35dbe2 /includes
parentc01f05a3b9f56b9f757902650e865f347e8f0cae (diff)
downloadcacert-devel-f5ae2d5243bd2f351eafa8ad7a07a11050bfdb50.tar.gz
cacert-devel-f5ae2d5243bd2f351eafa8ad7a07a11050bfdb50.tar.xz
cacert-devel-f5ae2d5243bd2f351eafa8ad7a07a11050bfdb50.zip
bug-827 changed if to max ;-)
Diffstat (limited to 'includes')
-rw-r--r--includes/wot.inc.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php
index 275b3a0..19c27a1 100644
--- a/includes/wot.inc.php
+++ b/includes/wot.inc.php
@@ -106,10 +106,7 @@
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;