summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-07-20 00:57:25 +0200
committerMichael Tänzer <neo@nhng.de>2011-07-20 00:57:25 +0200
commitf5cca0215ef95189fd24966e3260948605df0e5e (patch)
tree6274bd020a3b201441f5e54db12c48c8d6154847
parentb24134a0a06df0855652457a28d8077e24a7a354 (diff)
downloadcacert-devel-bug-959.tar.gz
cacert-devel-bug-959.tar.xz
cacert-devel-bug-959.zip
bug 959: Also handle negative pointsbug-959
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--www/wot.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/wot.php b/www/wot.php
index 1941861..7fa572f 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -209,6 +209,8 @@
if (intval($_POST['points']) > $max) {
$awarded = $newpoints = $max;
+ } elseif (intval($_POST['points']) < 0) {
+ $awarded = $newpoints = 0;
} else {
$awarded = $newpoints = intval($_POST['points']);
}