공지글 수정시 기존 순서 변경되지 않도록 수정
This commit is contained in:
@ -2257,6 +2257,9 @@ function https_url($dir, $https=true)
|
|||||||
// 게시판의 공지사항을 , 로 구분하여 업데이트 한다.
|
// 게시판의 공지사항을 , 로 구분하여 업데이트 한다.
|
||||||
function board_notice($bo_notice, $wr_id, $insert=false)
|
function board_notice($bo_notice, $wr_id, $insert=false)
|
||||||
{
|
{
|
||||||
|
if(strpos($bo_notice, strval($wr_id)) !== false)
|
||||||
|
return $bo_notice;
|
||||||
|
|
||||||
$notice_array = explode(",", trim($bo_notice));
|
$notice_array = explode(",", trim($bo_notice));
|
||||||
$notice_array = array_merge(array($wr_id), $notice_array);
|
$notice_array = array_merge(array($wr_id), $notice_array);
|
||||||
$notice_array = array_unique($notice_array);
|
$notice_array = array_unique($notice_array);
|
||||||
|
|||||||
Reference in New Issue
Block a user