게시글 수정시 글 제목을 수정했을때 나타나는 오류 수정

This commit is contained in:
thisgun
2019-09-17 19:08:26 +09:00
parent a0a2ca2a9f
commit 9a68f86230
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -424,6 +424,9 @@ if ($w == '' || $w == 'r') {
$bo_notice = board_notice($board['bo_notice'], $wr_id, $notice);
sql_query(" update {$g5['board_table']} set bo_notice = '{$bo_notice}' where bo_table = '{$bo_table}' ");
// 글을 수정한 경우에는 제목이 달라질수도 있으니 static variable 를 새로고침합니다.
$write = get_write( $write_table, $wr['wr_id'], false);
}
// 게시판그룹접근사용을 하지 않아야 하고 비회원 글읽기가 가능해야 하며 비밀글이 아니어야 합니다.
+1 -1
View File
@@ -707,7 +707,7 @@ function get_write($write_table, $wr_id, $is_cache=false)
$write = $g5_object->get('bbs', $wr_id, $wr_bo_table);
if( !$write ){
if( !$write || $is_cache == false ){
$sql = " select * from {$write_table} where wr_id = '{$wr_id}' ";
$write = sql_fetch($sql);