|
From: Benjamin C. <bc...@us...> - 2002-02-28 18:21:36
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv20649
Modified Files:
bug.php
Log Message:
Fixed an off-by-one error
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- bug.php 28 Feb 2002 17:48:57 -0000 1.80
+++ bug.php 28 Feb 2002 18:21:30 -0000 1.81
@@ -65,7 +65,7 @@
}
// Check whether the user has used his allotment of votes (if there is a max)
if (MAX_USER_VOTES and $q->grab_field("select count(*) from ".TBL_BUG_VOTE.
- " where user_id = $u") > MAX_USER_VOTES) {
+ " where user_id = $u") >= MAX_USER_VOTES) {
show_bug($bug_id, array('vote' => $STRING['too_many_votes']));
return;
}
|