From f0c2dd2bba3e13ee1df400cf6d41bdac2ef18a62 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 2 Jan 2018 17:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bchunk=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index c22cf781..755f454b 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2628,7 +2628,7 @@ class Query } $resultSet = $query->order($column, $order)->select(); - while (!empty($resultSet)) { + while (count($resultSet) > 0) { if ($resultSet instanceof Collection) { $resultSet = $resultSet->all(); } @@ -2649,8 +2649,8 @@ class Query } $resultSet = $query->bind($bind)->order($column, $order)->select(); - } + return true; }