summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-10-29 09:10:45 +0100
committerBenny Baumann <BenBE@geshi.org>2014-10-29 09:10:45 +0100
commitb513efab245b17945e09ece0290f1d5f4fe13f85 (patch)
tree04ba8713f32974534f379c3b13077cfa1883f8cd
parent06bad1b1fcded843b28a5c67b090fde49933fa13 (diff)
downloadcacert-devel-b513efab245b17945e09ece0290f1d5f4fe13f85.tar.gz
cacert-devel-b513efab245b17945e09ece0290f1d5f4fe13f85.tar.xz
cacert-devel-b513efab245b17945e09ece0290f1d5f4fe13f85.zip
bug 1316: Use the correct column for adding the awarded points together
-rw-r--r--includes/notary.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index 32167f9..b6565b9 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -2160,7 +2160,7 @@ function revoke_assurance($assuranceid, $toid){
$maxToAward = max(100 - $points, 0);
$newpoints = min($row['awarded'], $maxToAward);
- $points += $row['points'];
+ $points += $row['awarded'];
$query = "update `notary` set `points` = '". (int)$newpoints ."' where `id`='" . (int)$row['id'] . "' LIMIT 1";
mysql_query($query);