diff options
author | terry%netscape.com <> | 1999-04-28 02:17:49 +0200 |
---|---|---|
committer | terry%netscape.com <> | 1999-04-28 02:17:49 +0200 |
commit | a6681fdc8c95b49edfa3fa3da8bf3e4b2ada9833 (patch) | |
tree | 1516ad3a56647808e41b780114ab07032368870f /query.cgi | |
parent | 52f6d572410ff925d87f519e9d0528c7d4812730 (diff) | |
download | bugzilla-a6681fdc8c95b49edfa3fa3da8bf3e4b2ada9833.tar.gz bugzilla-a6681fdc8c95b49edfa3fa3da8bf3e4b2ada9833.tar.xz |
Patch by David Gardiner <david.gardiner@unisa.edu.au> -- added new headerhtml
param to allow people to customize the html put in the <HEAD> portion
of generated documents. Also, a few other minor patches.
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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"; + } } } |