From 966afdecc46e1644d9b3d30ba67b90f7259ff7ba Mon Sep 17 00:00:00 2001 From: aikaim <553975755@qq.com> Date: Sat, 23 Aug 2025 09:10:31 +0000 Subject: [PATCH] =?UTF-8?q?update=20part1/src/protected/lib/speed.php.=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3pager()=E4=B8=AD=EF=BC=8C=E5=BD=93=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E4=B8=80=E4=B8=AA=E9=A1=B5=E9=9D=A2=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=88=86=E9=A1=B5=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aikaim <553975755@qq.com> --- part1/src/protected/lib/speed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part1/src/protected/lib/speed.php b/part1/src/protected/lib/speed.php index 9f98f71..b846c3a 100644 --- a/part1/src/protected/lib/speed.php +++ b/part1/src/protected/lib/speed.php @@ -266,7 +266,7 @@ class Model{ public function pager($page, $pageSize = 10, $scope = 10, $total){ $this->page = null; - if($total > $pageSize){ + if($total > 0){ $total_page = ceil($total / $pageSize); $page = min(intval(max($page, 1)), $total); $this->page = array( -- Gitee