Skip to content

Commit

Permalink
$sum['cnt'] 가 null 일때 재고 반영이 제대로 안되는 오류 수정 (그누위즈님,210614)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagla committed Jun 17, 2021
1 parent b986729 commit 3da6e9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shop/cartupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
and ct_status = '쇼핑'
and ct_select = '1' ";
$sum = sql_fetch($sql);
$sum_qty = $sum['cnt'];
// $sum['cnt'] 가 null 일때 재고 반영이 제대로 안되는 오류 수정 (그누위즈님,210614)
// $sum_qty = $sum['cnt'];
$sum_qty = is_int($sum['cnt']) ? $sum['cnt'] : 0;

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

0 comments on commit 3da6e9f

Please sign in to comment.