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']}