#392 에 따른 게시글없을 때 카테고리 쿼리 오류 수정

This commit is contained in:
chicpro
2013-03-13 16:21:27 +09:00
parent 2e5f299c3d
commit ce2bc1fcd9

View File

@ -36,7 +36,7 @@ if ($sca || $stx) {
// 가장 작은 번호를 얻어서 변수에 저장 (하단의 페이징에서 사용)
$sql = " select MIN(wr_num) as min_wr_num from {$write_table} ";
$row = sql_fetch($sql);
$min_spt = $row['min_wr_num'];
$min_spt = (int)$row['min_wr_num'];
if (!$spt) $spt = $min_spt;