Skip to content

Commit

Permalink
공지가 풀리는 경우 코드 오류 수정 및 메모 카운트 코드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Mar 20, 2018
1 parent fddd293 commit 52f6b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bbs/memo.php
Expand Up @@ -20,7 +20,7 @@

$sql = " select count(*) as cnt from {$g5['memo_table']} where me_{$kind}_mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
$total_count = number_format($row['cnt']);
$total_count = $row['cnt'];

$total_page = ceil($total_count / $config['cf_page_rows']); // 전체 페이지 계산
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
Expand Down
2 changes: 1 addition & 1 deletion bbs/write_update.php
Expand Up @@ -135,7 +135,7 @@
}

//회원 자신이 쓴글을 수정할 경우 공지가 풀리는 경우가 있음
if($w =='u' && $board['bo_notice'] && in_array($wr['wr_id'], $notice_array)){
if($w =='u' && !$is_admin && $board['bo_notice'] && in_array($wr['wr_id'], $notice_array)){
$notice = 1;
}

Expand Down

0 comments on commit 52f6b39

Please sign in to comment.