From ba7ca1d562c0dd9b74921ccdf5142f2bb7f47d71 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 6 Jan 2017 16:17:35 +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/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index 23bf00cb..0110aa28 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -485,7 +485,7 @@ abstract class Connection */ protected function getResult($pdo = false, $procedure = false) { - if (true === $class) { + if ($pdo) { // 返回PDOStatement对象处理 return $this->PDOStatement; }