From 33ee1e885b771d2960fd6edaec7505058f2139fd Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 7 Jun 2005 04:37:57 +0000 Subject: Bug 252214: Allow max of zero votes per bug - Patch by Alfred Karl Kornel r=vladd a=justdave --- editproducts.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index cd124169f..229aa64d2 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -1252,8 +1252,8 @@ if ($action eq 'update') { CheckProduct($productold); my $product_id = get_product_id($productold); - if (!detaint_natural($maxvotesperbug) || $maxvotesperbug == 0) { - print "Sorry, the max votes per bug must be a positive integer."; + if (!detaint_natural($maxvotesperbug)) { + print "Sorry, the max votes per bug must be an integer >= 0."; PutTrailer($localtrailer); exit; } -- cgit v1.2.3-24-g4f1b