From f28aba40648ed72d437dc58fb367d6243b690859 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 22 Feb 2011 20:11:42 -0600 Subject: [PATCH] modified: yotsubanome.php --- yotsubanome.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yotsubanome.php b/yotsubanome.php index ad1a28a..059c6b5 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -126,7 +126,7 @@ function updatelog($resno=0,$page_num=-1,$single_page=false){ $page_end = ceil($threads_count / PAGE_DEF) - 1; // 頁面編號最後值 }else{ // 討論串分頁模式 (PHP動態輸出一頁份) $threads_count = $PIO->threadCount(); // 討論串個數 - //---- if($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count) error(_T('page_not_found')); // $page_num超過範圍 + /*//---- if($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count) error(_T('page_not_found')); // $page_num超過範圍*/ if($threads_count != 0 && $page_num != 0 || ($page_num < 0 || ($page_num * PAGE_DEF) >= $threads_count)) error(_T('page_not_found')); // $page_num超過範圍 $page_start = $page_end = $page_num; // 設定靜態頁面編號 $threads = $PIO->fetchThreadList($page_num * PAGE_DEF, PAGE_DEF); // 取出分頁後的討論串首篇列表 -- 2.39.2