Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
관리자 주문내역수정에서 장바구니 상태 변경 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Feb 3, 2021
1 parent 3b5af15 commit 16a788a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions adm/shop_admin/orderformcartupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,18 @@

for ($i=0; $i<$cnt; $i++)
{
$k = isset($_POST['ct_chk'][$i]) ? (int) $_POST['ct_chk'][$i] : 0;
$k = isset($_POST['ct_chk'][$i]) ? (int) $_POST['ct_chk'][$i] : '';

if($k === '') continue;

$ct_id = isset($_POST['ct_id'][$k]) ? (int) $_POST['ct_id'][$k] : 0;

if(!$ct_id)
continue;

$sql = " select * from {$g5['g5_shop_cart_table']} where od_id = '$od_id' and ct_id = '$ct_id' ";
$ct = sql_fetch($sql);
if(!$ct['ct_id'])
if(! (isset($ct['ct_id']) && $ct['ct_id']))
continue;

// 수량이 변경됐다면
Expand Down

0 comments on commit 16a788a

Please sign in to comment.