From ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 3 Nov 2009 19:46:13 +0000 Subject: Bug 526271: Uninitialized value in can_enter_product() due to a missing argument - Patch by Frédéric Buclin r=ghendricks a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buglist.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 60713b035..a8103a1e0 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1101,7 +1101,7 @@ elsif (my @product_input = $cgi->param('product')) { } # We only want the template to use it if the user can actually # enter bugs against it. -if (Bugzilla->user->can_enter_product($one_product)) { +if ($one_product && Bugzilla->user->can_enter_product($one_product)) { $vars->{'one_product'} = $one_product; } -- cgit v1.2.3-24-g4f1b