Fix for bug 65399: Can't use string ("") as an ARRAY ref while "strict refs" in…

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
parent c0b95464
...@@ -292,8 +292,10 @@ foreach my $p (@::legal_product) { ...@@ -292,8 +292,10 @@ foreach my $p (@::legal_product) {
next; next;
} }
push @::product_list, $p; push @::product_list, $p;
foreach my $c (@{$::components{$p}}) { if ($::components{$p}) {
$component_set{$c} = 1; foreach my $c (@{$::components{$p}}) {
$component_set{$c} = 1;
}
} }
foreach my $v (@{$::versions{$p}}) { foreach my $v (@{$::versions{$p}}) {
$version_set{$v} = 1; $version_set{$v} = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment