diff --git a/bbs/move_update.php b/bbs/move_update.php index 097af6863..99265fb8c 100644 --- a/bbs/move_update.php +++ b/bbs/move_update.php @@ -247,7 +247,24 @@ if ($sw == 'move') sql_query(" delete from {$g5['board_new_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' "); sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' "); } - sql_query(" update {$g5['board_table']} set bo_count_write = bo_count_write - '$save_count_write', bo_count_comment = bo_count_comment - '$save_count_comment' where bo_table = '$bo_table' "); + + // 공지사항이 이동되는 경우의 처리 begin + $arr = array(); + $sql = " select bo_notice from {$g5['board_table']} where bo_table = '{$bo_table}' "; + $row = sql_fetch($sql); + $arr_notice = explode(',', $row['bo_notice']); + for ($i=0; $i