summaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
Diffstat (limited to 'manager')
-rw-r--r--manager/application/controllers/ManageAccountController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/manager/application/controllers/ManageAccountController.php b/manager/application/controllers/ManageAccountController.php
index 33eed81..e900d72 100644
--- a/manager/application/controllers/ManageAccountController.php
+++ b/manager/application/controllers/ManageAccountController.php
@@ -91,6 +91,11 @@ class ManageAccountController extends Zend_Controller_Action
$assurance['points'] = $assurance['awarded'];
}
+ // Only assign positive amounts
+ if ($assurance['points'] < 0){
+ $assurance['points'] = 0;
+ }
+
$this->db->insert('notary', $assurance);
$user['points'] += $assurance['points'];