summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'query.cgi')
-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++;