Merge branch 'master' of ssh://git-cacert.it-sls.de/var/cache/git/cacert-mgr
authorMichael Tänzer <neo@nhng.de>
Tue, 3 Aug 2010 19:31:41 +0000 (21:31 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 3 Aug 2010 19:31:41 +0000 (21:31 +0200)
manager/application/controllers/ManageAccountController.php

index 33eed81..e900d72 100644 (file)
@@ -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'];