From efcda397959c077e7bd817e55317d793d8523fd9 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Mon, 9 May 2016 17:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=86=E9=A1=B5=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Paginator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Paginator.php b/library/think/Paginator.php index ba8aba2e..4f1772ae 100644 --- a/library/think/Paginator.php +++ b/library/think/Paginator.php @@ -60,6 +60,7 @@ abstract class Paginator $this->hasMore = count($this->items) > ($this->listRows); $this->items = $this->items->slice(0, $this->listRows); } else { + $this->total = $total; $this->lastPage = (int)ceil($total / $listRows); $this->currentPage = $this->setCurrentPage($currentPage); $this->hasMore = $this->currentPage < $this->lastPage;