if (user_pick == null) user_pick = 0;
var inputs : Array<String> = [];
if(maxQuantity > 12) {
- inputs.push('<span class="picked">'+quantity+' </span>');
+ inputs.push('<span class="picked">'+(quantity == null ? 0 : quantity)+' </span>');
inputs.push('<input type="text" name="'+row_id+'[to_pick]" value="'+user_pick+'" onchange=\'onPick(this);\'>');
}
else {
}
$inputs = new _hx_array(array());
if($maxQuantity > 12) {
- $inputs->push("<span class=\"picked\">" . _hx_string_rec($quantity, "") . " </span>");
+ $inputs->push("<span class=\"picked\">" . _hx_string_rec(((($quantity === null) ? 0 : $quantity)), "") . " </span>");
$inputs->push("<input type=\"text\" name=\"" . $row_id . "[to_pick]\" value=\"" . _hx_string_rec($user_pick, "") . "\" onchange='onPick(this);'>");
} else {
$inputs->push("<span class=\"pickable\">");