From 4ed42ca9ee798995c5bb22a0564f699359cd0cd2 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 27 Dec 2017 23:43:23 +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/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 391f78b6..d2f7b640 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1074,7 +1074,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess foreach ((array) $pk as $key) { if (isset($data[$key])) { - $array[] = [$key, '=', $data[$key]]; + $array[$key] = $data[$key]; unset($data[$key]); } }