From e5889df76153825e64a7bfddd60d78495e9ae5c4 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 3 May 2016 17:31:10 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=B9=B4?= =?UTF-8?q?=ED=85=8C=EA=B3=A0=EB=A6=AC=20=EC=B2=B4=ED=81=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_update.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bbs/write_update.php b/bbs/write_update.php index 878616c3e..b6db2e699 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -15,7 +15,12 @@ if($board['bo_use_category']) { $categories = array_map('trim', explode("|", $board['bo_category_list'].($is_admin ? '|공지' : ''))); if(!empty($categories) && !in_array($ca_name, $categories)) $msg[] = '분류를 올바르게 입력하세요.'; + + if(empty($categories)) + $ca_name = ''; } +} else { + $ca_name = ''; } $wr_subject = '';