Index: includes/functions_product.php
===================================================================
--- includes/functions_product.php (revision 750)
+++ includes/functions_product.php (working copy)
@@ -47,6 +47,9 @@
continue;
}
+ // set options
+ $OPTIONS = '';
+
// prefix
$valuepfx = "p$product[productid]";
@@ -61,28 +64,31 @@
$OPTIONS .= construct_option($version['version'], "{$valuepfx}c0v$version[versionid]", $select, 0, $prefix);
}
}
+ else
+ {
+ $OPTIONS = '';
+ }
- // add it as an optgroup
- $HTML .= construct_optgroup($product['title'], 0, $OPTIONS, $prefix);
- $OPTIONS = '';
-
// components (can't be a nested