summaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2010-04-29 20:49:27 +0200
committerMichael Tänzer <neo@nhng.de>2010-04-29 20:49:27 +0200
commitac7f1ba03d7f8349498a5c2cfc8035f82a2729c9 (patch)
treecb303e91f54ef1ef9ecb228778acc82880038cce /manager
parent4af9e0a9bb36fb187941f1a397e2548a0472317f (diff)
downloadcacert-mgr-ac7f1ba03d7f8349498a5c2cfc8035f82a2729c9.tar.gz
cacert-mgr-ac7f1ba03d7f8349498a5c2cfc8035f82a2729c9.tar.xz
cacert-mgr-ac7f1ba03d7f8349498a5c2cfc8035f82a2729c9.zip
Class constants have to be prefixed with self:: in PHP
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'manager')
-rw-r--r--manager/application/controllers/AddPointsController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/manager/application/controllers/AddPointsController.php b/manager/application/controllers/AddPointsController.php
index 95b1d5f..1b3380b 100644
--- a/manager/application/controllers/AddPointsController.php
+++ b/manager/application/controllers/AddPointsController.php
@@ -90,17 +90,17 @@ class AddPointsController extends Zend_Controller_Action
$points = $values['quantity'];
do {
// split up into multiple assurances
- if ($points > MAX_POINTS_PER_ASSURANCE) {
- $assurance['awarded'] = MAX_POINTS_PER_ASSURANCE;
- $points -= MAX_POINTS_PER_ASSURANCE;
+ if ($points > self::MAX_POINTS_PER_ASSURANCE) {
+ $assurance['awarded'] = self::MAX_POINTS_PER_ASSURANCE;
+ $points -= self::MAX_POINTS_PER_ASSURANCE;
} else {
$assurance['awarded'] = $points;
$points = 0;
}
// only assign points whithin the limit
- if ($user['points'] + $assurance['awarded'] > MAX_ASSURANCE_POINTS){
- $assurance['points'] = MAX_ASSURANCE_POINTS - $user['points'];
+ if ($user['points'] + $assurance['awarded'] > self::MAX_ASSURANCE_POINTS){
+ $assurance['points'] = self::MAX_ASSURANCE_POINTS - $user['points'];
} else {
$assurance['points'] = $assurance['awarded'];
}