From 9e0fc19c0d1acab456bc6b6d8a8a816521584b57 Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 16 Mar 2021 11:01:52 +0900 Subject: [PATCH] =?UTF-8?q?PHP8=20=EB=B2=84=EC=A0=84=20=EB=8C=80=EC=9D=91?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/lgxpay/AuthOnlyRes.php | 2 +- shop/wishupdate.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/lgxpay/AuthOnlyRes.php b/plugin/lgxpay/AuthOnlyRes.php index 1e0a94489..f5696237b 100644 --- a/plugin/lgxpay/AuthOnlyRes.php +++ b/plugin/lgxpay/AuthOnlyRes.php @@ -129,7 +129,7 @@ if ($xpay->TX()) { if($mb_dupinfo) { $sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$member['mb_id']}' and mb_dupinfo = '{$mb_dupinfo}' "; $row = sql_fetch($sql); - if ($row['mb_id']) { + if (isset($row['mb_id']) && $row['mb_id']) { alert_close("입력하신 본인확인 정보로 가입된 내역이 존재합니다.\\n회원아이디 : ".$row['mb_id']); } } diff --git a/shop/wishupdate.php b/shop/wishupdate.php index 9b721de7e..4a6b02ec6 100644 --- a/shop/wishupdate.php +++ b/shop/wishupdate.php @@ -21,10 +21,10 @@ if ($w == "d") } else { - $it_id = isset($_POST['it_id']) ? $_POST['it_id'] : null; + $it_id = isset($_REQUEST['it_id']) ? $_REQUEST['it_id'] : null; if(is_array($it_id)) - $it_id = $_POST['it_id'][0]; + $it_id = $_REQUEST['it_id'][0]; $it_id = safe_replace_regex($it_id, 'it_id'); @@ -41,7 +41,7 @@ else // 상품정보 체크 $row = get_shop_item($it_id, true); - if(!$row['it_id']) + if(! (isset($row['it_id']) && $row['it_id'])) alert('상품정보가 존재하지 않습니다.', G5_SHOP_URL); $sql = " select wi_id from {$g5['g5_shop_wish_table']}