From 46c89016520cf272223cba52e704388fa94b4392 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 24 Oct 2005 04:47:50 +0000 Subject: Bug 312307: Misused Throw*Error tags in code and templates - Patch by Dennis Melentyev r=LpSolit a=justdave --- enter_bug.cgi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index e2772ccec..569d9554c 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -334,10 +334,7 @@ GetVersionTable(); my $product_id = get_product_id($product); -if (0 == @{$::components{$product}}) { - ThrowUserError("no_components", {product => $product}); -} -elsif (1 == @{$::components{$product}}) { +if (1 == @{$::components{$product}}) { # Only one component; just pick it. $cgi->param('component', $::components{$product}->[0]); } -- cgit v1.2.3-24-g4f1b