From ec3fdce5c701373b04c887fa3f4e03b5192c1fff Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 11 Jul 2023 10:41:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=EC=8B=9C=20sum=5Fqty?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=ED=98=95=EB=B3=80=ED=99=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/cartupdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/cartupdate.php b/shop/cartupdate.php index b8ba2848d..9479f0b98 100644 --- a/shop/cartupdate.php +++ b/shop/cartupdate.php @@ -81,7 +81,7 @@ if($act == "buy") $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'];