Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
1:1문의 등록 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed May 17, 2016
1 parent e3d85d4 commit dfc85ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bbs/qawrite_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
$qaconfig = get_qa_config();

if(trim($qaconfig['qa_category'])) {
$category = explode('|', $qaconfig['qa_category']);
if(!in_array($qa_category, $category))
alert('분류를 올바르게 지정해 주십시오.');
if($w != 'a') {
$category = explode('|', $qaconfig['qa_category']);
if(!in_array($qa_category, $category))
alert('분류를 올바르게 지정해 주십시오.');
}
} else {
alert('1:1문의 설정에서 분류를 설정해 주십시오');
}
Expand All @@ -28,7 +30,7 @@
if(isset($_POST['qa_email']) && $_POST['qa_email'])
$qa_email = get_email_address(trim($_POST['qa_email']));

if($qaconfig['qa_req_email'] && !$qa_email)
if($w != 'a' && $qaconfig['qa_req_email'] && !$qa_email)
$msg[] = '이메일을 입력하세요.';

$qa_subject = '';
Expand Down

0 comments on commit dfc85ff

Please sign in to comment.