diff options
author | dirk <beliebige_email_adresse@fidocon.de> | 2011-09-20 01:22:32 +0200 |
---|---|---|
committer | dirk <beliebige_email_adresse@fidocon.de> | 2011-09-20 01:22:32 +0200 |
commit | f6f19d4bd23f9edcf9e90b43b845718dcd1c08a6 (patch) | |
tree | c4583d32bfc2ade98380b54728a9fd482c7bebb1 /includes/wot.inc.php | |
parent | d7add31fa77ecfc333acece499708e1c9cb83c81 (diff) | |
download | cacert-devel-f6f19d4bd23f9edcf9e90b43b845718dcd1c08a6.tar.gz cacert-devel-f6f19d4bd23f9edcf9e90b43b845718dcd1c08a6.tar.xz cacert-devel-f6f19d4bd23f9edcf9e90b43b845718dcd1c08a6.zip |
bug-827 changed behaviour of awarded=null
Diffstat (limited to 'includes/wot.inc.php')
-rw-r--r-- | includes/wot.inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php index 2f12c01..dc75899 100644 --- a/includes/wot.inc.php +++ b/includes/wot.inc.php @@ -323,8 +323,11 @@ function calc_points($row) { - if (intval($row['points']) < intval($row['awarded'])) - $points = intval($row['awarded']); // if 'sum of added points' > 100, awarded shows correct value + $awarded = intval($row['awarded']); + if ($awarded == "") + $awarded = 0; + if (intval($row['points']) < $awarded) + $points = $awarded; // if 'sum of added points' > 100, awarded shows correct value else $points = intval($row['points']); // on very old assurances, awarded is '0' instead of correct value switch ($row['method']) |