From 768bc0d3a6e1ceb73ffb871dba3dc81b7386b0d7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 19 Dec 2005 22:34:42 +0000 Subject: [PATCH] r634: Don't let $uservote == 0 --- vote.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vote.php b/vote.php index a556270..8662c71 100644 --- a/vote.php +++ b/vote.php @@ -68,10 +68,14 @@ if ($_REQUEST['do'] == 'vote') { $votefor++; } - else + else if ($uservote < 0) { $voteagainst++; } + else + { + $message->error($lang->string('You need to specify whether you want to vote for or against this bug.')); + } $db->query("UPDATE " . TABLE_PREFIX . "vote SET userids = '$userids', votefor = $votefor, voteagainst = $voteagainst WHERE bugid = $bug[bugid]"); -- 2.43.5