From f5cca0215ef95189fd24966e3260948605df0e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Wed, 20 Jul 2011 00:57:25 +0200 Subject: bug 959: Also handle negative points MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- www/wot.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/wot.php') 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']); } -- cgit v1.2.1