From a6681fdc8c95b49edfa3fa3da8bf3e4b2ada9833 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Wed, 28 Apr 1999 00:17:49 +0000 Subject: Patch by David Gardiner -- added new headerhtml param to allow people to customize the html put in the portion of generated documents. Also, a few other minor patches. --- query.cgi | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index f98360b66..5ee513ec0 100755 --- a/query.cgi +++ b/query.cgi @@ -219,11 +219,16 @@ foreach $v (@::legal_versions) { for $p (@::legal_product) { - foreach $c (@{$::components{$p}}) { - $jscript .= "cpts['$c'].push('$p');\n"; + if ($::components{$p}) { + foreach $c (@{$::components{$p}}) { + $jscript .= "cpts['$c'].push('$p');\n"; + } } - foreach $v (@{$::versions{$p}}) { - $jscript .= "vers['$v'].push('$p');\n"; + + if ($::versions{$p}) { + foreach $v (@{$::versions{$p}}) { + $jscript .= "vers['$v'].push('$p');\n"; + } } } -- cgit v1.2.1