From a0eb804918d050cf8cdbfeb51b9b0fa310c5aab0 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 25 Mar 2024 10:47:29 +0900 Subject: [PATCH] =?UTF-8?q?[KVE-2024-0023]=20=EB=8B=B5=EB=B3=80=EC=9D=B4?= =?UTF-8?q?=20=EB=8B=AC=EB=A6=B0=20=EC=83=81=ED=92=88=EB=AC=B8=EC=9D=98?= =?UTF-8?q?=EA=B8=80=20=EC=88=98=EC=A0=95=EA=B0=80=EB=8A=A5=20=EC=B7=A8?= =?UTF-8?q?=EC=95=BD=EC=A0=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/itemqaformupdate.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shop/itemqaformupdate.php b/shop/itemqaformupdate.php index cfd480186..0d1df9c4e 100644 --- a/shop/itemqaformupdate.php +++ b/shop/itemqaformupdate.php @@ -60,6 +60,13 @@ else if ($w == "u") $row = sql_fetch($sql); if (!$row['cnt']) alert("자신의 상품문의만 수정하실 수 있습니다."); + + $sql = " select iq_answer from `{$g5['g5_shop_item_qa_table']}` where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' "; + $row = sql_fetch($sql); + + if (isset($row['iq_answer']) && $row['iq_answer']) { + alert("답변이 있는 상품문의는 수정하실 수 없습니다."); + } } $sql = " update {$g5['g5_shop_item_qa_table']}