Skip to content

Commit

Permalink
비회원이 비밀글을 작성할 경우 패스워드를 묻는 오류 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Nov 10, 2023
1 parent db1d56e commit 16051b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bbs/write_update.php
Expand Up @@ -678,8 +678,14 @@
//------------------------------------------------------------------------------

// 비밀글이라면 세션에 비밀글의 아이디를 저장한다. 자신의 글은 다시 비밀번호를 묻지 않기 위함
if ($secret)
if ($secret) {
if (! $wr_num) {
$write = get_write($write_table, $wr_id, true);
$wr_num = $write['wr_num'];
}

set_session("ss_secret_{$bo_table}_{$wr_num}", TRUE);
}

// 메일발송 사용 (수정글은 발송하지 않음)
if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_email']) {
Expand Down

0 comments on commit 16051b3

Please sign in to comment.