Skip to content

Commit

Permalink
장바구니 업데이트시 sum_qty변수 형변환 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jul 11, 2023
1 parent 79ce9ec commit ec3fdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shop/cartupdate.php
Expand Up @@ -81,7 +81,7 @@
$sum = sql_fetch($sql);
// $sum['cnt'] 가 null 일때 재고 반영이 제대로 안되는 오류 수정 (그누위즈님,210614)
// $sum_qty = $sum['cnt'];
$sum_qty = is_int($sum['cnt']) ? $sum['cnt'] : 0;
$sum_qty = isset($sum['cnt']) ? (int) $sum['cnt'] : 0;

// 재고 구함
$ct_qty = $row['ct_qty'];
Expand Down

0 comments on commit ec3fdce

Please sign in to comment.