Skip to content
Permalink
Browse files

Update datacheck.inc.php

Check money format on shipping and additional shipping in sell page
  • Loading branch information...
pani100 committed Oct 14, 2014
1 parent cba135d commit 1f7a2705419d1a32230aa54520d5c50cda1c3830
Showing with 13 additions and 1 deletion.
  1. +13 −1 includes/datacheck.inc.php
@@ -103,6 +103,7 @@ function CheckSellData()
global $title, $description, $minimum_bid, $with_reserve, $reserve_price, $buy_now, $buy_now_only, $buy_now_price, $payment, $category;
global $atype, $iquantity, $increments, $customincrement, $system, $_SESSION;
global $payments, $num, $nnum, $a_starts, $start_now, $relist;
global $additional_shipping_cost, $shipping_cost;
if (empty($title))
{
@@ -157,6 +158,17 @@ function CheckSellData()
{
return '061';
}
if (isset($shipping_cost) && !$system->CheckMoney($shipping_cost)) {
return '079';
}
if (isset($additional_shipping_cost) && !$system->CheckMoney($additional_shipping_cost)) {
return '080';
}
$numpay = count($payment);
if ($numpay == 0)
@@ -277,4 +289,4 @@ function CheckBidData()
return 0;
}
?>
?>

0 comments on commit 1f7a270

Please sign in to comment.
You can’t perform that action at this time.