summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-04-28 02:17:49 +0200
committerterry%netscape.com <>1999-04-28 02:17:49 +0200
commita6681fdc8c95b49edfa3fa3da8bf3e4b2ada9833 (patch)
tree1516ad3a56647808e41b780114ab07032368870f /query.cgi
parent52f6d572410ff925d87f519e9d0528c7d4812730 (diff)
downloadbugzilla-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-xquery.cgi13
1 files changed, 9 insertions, 4 deletions
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";
+ }
}
}