공지사항 오류 수정

This commit is contained in:
gnuboard
2013-05-10 11:06:48 +09:00
parent ba75e3dea4
commit 0709558615
4 changed files with 34 additions and 1 deletions

View File

@ -130,6 +130,7 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
// 스크랩 삭제
sql_query(" delete from {$g4['scrap_table']} where bo_table = '$bo_table' and wr_id = '{$write['wr_id']}' ");
/*
// 공지사항 삭제
$notice_array = explode(',', trim($board['bo_notice']));
$bo_notice = "";
@ -137,6 +138,8 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
if ((int)$write['wr_id'] != (int)$notice_array[$k])
$bo_notice .= $notice_array[$k].',';
$bo_notice = trim($bo_notice);
*/
$bo_notice = board_notice($board['bo_notice'], $write['wr_id']);
sql_query(" update {$g4['board_table']} set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
$board['bo_notice'] = $bo_notice;
}