게시글 수정 시 공지체크 해제되지 않는 오류 수정
This commit is contained in:
@ -2320,10 +2320,11 @@ function https_url($dir, $https=true)
|
||||
// 게시판의 공지사항을 , 로 구분하여 업데이트 한다.
|
||||
function board_notice($bo_notice, $wr_id, $insert=false)
|
||||
{
|
||||
if(strpos($bo_notice, strval($wr_id)) !== false)
|
||||
$notice_array = explode(",", trim($bo_notice));
|
||||
|
||||
if($insert && in_array($wr_id, $notice_array))
|
||||
return $bo_notice;
|
||||
|
||||
$notice_array = explode(",", trim($bo_notice));
|
||||
$notice_array = array_merge(array($wr_id), $notice_array);
|
||||
$notice_array = array_unique($notice_array);
|
||||
foreach ($notice_array as $key=>$value) {
|
||||
|
||||
Reference in New Issue
Block a user