From: justdave%syndicomm.com <> Date: Wed, 30 May 2001 03:30:51 +0000 (+0000) Subject: Fix for bug 65399: Can't use string ("") as an ARRAY ref while "strict refs" in use... X-Git-Tag: bugzilla-2.14~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c52d395f0be87362b9fd2994edacdb86f9b569;p=thirdparty%2Fbugzilla.git Fix for bug 65399: Can't use string ("") as an ARRAY ref while "strict refs" in use at query.cgi due to no components defined in a product. Patch by Matthias Radestock r= justdave@syndicomm.com --- diff --git a/query.cgi b/query.cgi index 0c171ce58c..f9822bd5fe 100755 --- a/query.cgi +++ b/query.cgi @@ -292,8 +292,10 @@ foreach my $p (@::legal_product) { next; } push @::product_list, $p; - foreach my $c (@{$::components{$p}}) { - $component_set{$c} = 1; + if ($::components{$p}) { + foreach my $c (@{$::components{$p}}) { + $component_set{$c} = 1; + } } foreach my $v (@{$::versions{$p}}) { $version_set{$v} = 1;