From ed5d05f4b76cbdc740b4caafb63acb54512e6fd5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 31 Aug 2017 17:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 2dff6863..527008a5 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -12,11 +12,11 @@ namespace think\db; use PDO; +use think\App; use think\Cache; use think\Collection; use think\Config; use think\Db; -use think\App; use think\db\exception\BindParamException; use think\db\exception\DataNotFoundException; use think\db\exception\ModelNotFoundException; @@ -2584,7 +2584,9 @@ class Query $column = $column[0]; } if (isset($options['order'])) { - App::$debug && throw new DbException('chunk not support call order'); + if (App::$debug) { + throw new DbException('chunk not support call order'); + } unset($options['order']); } $bind = $this->bind;