diff --git a/mobile/shop/cartsub.inc.php b/mobile/shop/cartsub.inc.php index c7eb2d492..122f4edc0 100644 --- a/mobile/shop/cartsub.inc.php +++ b/mobile/shop/cartsub.inc.php @@ -151,7 +151,11 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) $tot_point += $point; $tot_sell_amount += $sell_amount; } +} // for 끝 +if ($i == 0) { + echo '장바구니에 담긴 상품이 없습니다.'; +} else { // 배송비가 넘어왔다면 if ($_POST['od_send_cost']) { $send_cost = (int)$_POST['od_send_cost']; @@ -179,9 +183,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) if ($row['od_send_cost'] > 0) $send_cost = $row['od_send_cost']; } -} // for 끝 - -if ($i == 0) echo '장바구니에 담긴 상품이 없습니다.'; +} ?> diff --git a/shop/cartsub.inc.php b/shop/cartsub.inc.php index 004d42e52..6818bdca3 100644 --- a/shop/cartsub.inc.php +++ b/shop/cartsub.inc.php @@ -149,7 +149,11 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) $tot_point += $point; $tot_sell_amount += $sell_amount; } +} // for 끝 +if ($i == 0) { + echo '장바구니에 담긴 상품이 없습니다.'; +} else { // 배송비가 넘어왔다면 if ($_POST['od_send_cost']) { $send_cost = (int)$_POST['od_send_cost']; @@ -177,9 +181,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) if ($row['od_send_cost'] > 0) $send_cost = $row['od_send_cost']; } -} // for 끝 - -if ($i == 0) echo '장바구니에 담긴 상품이 없습니다.'; +} ?>