From a752d28b2fe87b6163f7e55a0d36be5bae31c207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 14 Sep 2020 10:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Pagination.php b/Database/Pagination.php index 5963a215..e6fccb41 100644 --- a/Database/Pagination.php +++ b/Database/Pagination.php @@ -107,7 +107,7 @@ class Pagination extends Component */ public function plunk($param = []) { - if ($this->_length >= $this->_max) { + if ($this->_max > 0 && $this->_length >= $this->_max) { return; } [$length, $data] = $this->get();