new_delete.php 선택삭제시 bo_count_write이 마이너스로 변합니다.
본문
그누보드5에 bbs/new_delete.php에 있는 선택삭제부분에 bo_count_write 값이 선택삭제시 음수로변합니다.
게시판관리에 카운트 조정말고 게시글 삭제시0으로맞추는방법이없을까요?
if ($pressed == '선택삭제') {
// 글숫자 감소
if ($count_write > 0 || $count_comment > 0) {
sql_query(" update {$g5['board_table']} set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table'");
}
}
답변을 작성하시기 전에 로그인 해주세요.