summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xquery.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/query.cgi b/query.cgi
index c42c01afe..350ed1cb5 100755
--- 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++;