Merge remote-tracking branch '그누보드/master'
This commit is contained in:
@ -40,6 +40,12 @@ if ($type) {
|
||||
else
|
||||
$mail_content = $content;
|
||||
|
||||
// 환경설정에서 폼메일 사용 여부가 회원만 사용에 체크되어 있으면
|
||||
if ($config['cf_formmail_is_member']) {
|
||||
$fnick = (isset($member['mb_nick']) && $member['mb_nick']) ? $member['mb_nick'] : $member['mb_name'];
|
||||
$fmail = $member['mb_email'];
|
||||
}
|
||||
|
||||
mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
|
||||
|
||||
// 임시 첨부파일 삭제
|
||||
|
||||
@ -346,8 +346,10 @@ if ($w == '') {
|
||||
}
|
||||
|
||||
for($i=0;$i<$file_count;$i++){
|
||||
if(! isset($file[$i])) {
|
||||
if (!isset($file[$i])) {
|
||||
$file[$i] = array('file'=>null, 'source'=>null, 'size'=>null, 'bf_content' => null);
|
||||
} else {
|
||||
$file[$i]['bf_content'] = isset($file[$i]['bf_content']) ? htmlspecialchars($file[$i]['bf_content'], ENT_QUOTES, 'UTF-8', false) : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user