From da1b302a34c9a540c5d79e5a94765f5fcbd67c43 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 28 Apr 2016 09:46:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_comment_update.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php index 4e93d1556..d370e625a 100644 --- a/bbs/write_comment_update.php +++ b/bbs/write_comment_update.php @@ -77,12 +77,15 @@ if ($w == 'c') // 댓글 입력 // 댓글 답변 if ($comment_id) { - $sql = " select wr_id, wr_comment, wr_comment_reply from $write_table + $sql = " select wr_id, wr_parent, wr_comment, wr_comment_reply from $write_table where wr_id = '$comment_id' "; $reply_array = sql_fetch($sql); if (!$reply_array['wr_id']) alert('답변할 댓글이 없습니다.\\n\\n답변하는 동안 댓글이 삭제되었을 수 있습니다.'); + if($wr['wr_parent'] != $reply_array['wr_parent']) + alert('댓글을 등록할 수 없습니다.'); + $tmp_comment = $reply_array['wr_comment']; if (strlen($reply_array['wr_comment_reply']) == 5)