]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for 40603: query.cgi shutdownhtml PutHeader
authorcyeh%bluemartini.com <>
Thu, 31 Aug 2000 05:49:17 +0000 (05:49 +0000)
committercyeh%bluemartini.com <>
Thu, 31 Aug 2000 05:49:17 +0000 (05:49 +0000)
patch submitted by JRobertson@medevolve.com (Jon Robertson)

query.cgi

index c42c01afe38433a5620de704ba5938964ca8cd86..350ed1cb51fbaac3a2a5d16302082664894890c2 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -356,6 +356,11 @@ function selectProduct(f) {
     var cnt = 0;
     var i;
     var j;
+
+    if (!f) {
+        return;
+    }
+
     for (i=0 ; i<f.product.length ; i++) {
         if (f.product[i].selected) {
             cnt++;