summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;