diff options
Diffstat (limited to 'includes/notary.inc.php')
-rw-r--r-- | includes/notary.inc.php | 7 |
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']) |