summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-05-30 05:30:51 +0200
committerjustdave%syndicomm.com <>2001-05-30 05:30:51 +0200
commit83c52d395f0be87362b9fd2994edacdb86f9b569 (patch)
tree6f0374aa894eca484c751502d8c77a81ffc3477b /query.cgi
parentc0b95464dcd2984915464953321da0eaa15dafad (diff)
downloadbugzilla-83c52d395f0be87362b9fd2994edacdb86f9b569.tar.gz
bugzilla-83c52d395f0be87362b9fd2994edacdb86f9b569.tar.xz
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 <matthias@sorted.org> r= justdave@syndicomm.com
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index 0c171ce58..f9822bd5f 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;