From c5d22ace259deb32d26584090047fa8b957337ca Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 29 Apr 2016 14:46:59 +0900 Subject: [PATCH] =?UTF-8?q?1:1=EB=AC=B8=EC=9D=98=20=EC=82=AD=EC=A0=9C=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/qadelete.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bbs/qadelete.php b/bbs/qadelete.php index 07373f40d..bc22d1eba 100644 --- a/bbs/qadelete.php +++ b/bbs/qadelete.php @@ -29,6 +29,10 @@ for($i=0; $i<$count; $i++) { if($is_admin != 'super' && $row['mb_id'] != $member['mb_id']) continue; + // 답변이 달린 글은 삭제못함 + if($is_admin != 'super' && !$row['qa_type'] && $row['qa_status']) + continue; + // 첨부파일 삭제 for($k=1; $k<=2; $k++) { @unlink(G5_DATA_PATH.'/qa/'.$row['qa_file'.$k]);