summaryrefslogtreecommitdiff
path: root/includes/notary.inc.php
diff options
context:
space:
mode:
authordirk <beliebige_email_adresse@fidocon.de>2011-09-20 01:21:35 +0200
committerdirk <beliebige_email_adresse@fidocon.de>2011-09-20 01:21:35 +0200
commit44959a0d3734ea36e1beb1b60074b6fd35ee2c40 (patch)
tree6c22cf986dfb7eec58c9f327af3f308929cd70a6 /includes/notary.inc.php
parentde3570db653021cd2f21dec335bdc57d1fcb236b (diff)
downloadcacert-devel-44959a0d3734ea36e1beb1b60074b6fd35ee2c40.tar.gz
cacert-devel-44959a0d3734ea36e1beb1b60074b6fd35ee2c40.tar.xz
cacert-devel-44959a0d3734ea36e1beb1b60074b6fd35ee2c40.zip
bug-882 changed awarded=null
Diffstat (limited to 'includes/notary.inc.php')
-rw-r--r--includes/notary.inc.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index af8d6f1..3651ea5 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -392,8 +392,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'])