Merge branch 'master' of github.com:gnuboard/g5

This commit is contained in:
thisgun
2018-03-20 16:06:08 +09:00
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
include_once('./_common.php'); include_once('./_common.php');
include_once(G5_PATH.'/head.sub.php'); include_once(G5_PATH.'/head.sub.php');
//$msg = isset($msg) ? strip_tags($msg) : ''; $msg = isset($msg) ? strip_tags($msg) : '';
$msg2 = str_replace("\\n", "<br>", $msg); $msg2 = str_replace("\\n", "<br>", $msg);

View File

@ -20,7 +20,7 @@ else
$sql = " select count(*) as cnt from {$g5['memo_table']} where me_{$kind}_mb_id = '{$member['mb_id']}' "; $sql = " select count(*) as cnt from {$g5['memo_table']} where me_{$kind}_mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql); $row = sql_fetch($sql);
$total_count = number_format($row['cnt']); $total_count = $row['cnt'];
$total_page = ceil($total_count / $config['cf_page_rows']); // 전체 페이지 계산 $total_page = ceil($total_count / $config['cf_page_rows']); // 전체 페이지 계산
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)

View File

@ -135,7 +135,7 @@ if ($w == '' || $w == 'u') {
} }
//회원 자신이 쓴글을 수정할 경우 공지가 풀리는 경우가 있음 //회원 자신이 쓴글을 수정할 경우 공지가 풀리는 경우가 있음
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; $notice = 1;
} }