diff options
-rw-r--r-- | www/wot.php | 2 |
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']); } |