From dd24123921ef54be6994157c5bbc6e8762b7f3bf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 28 Nov 2017 18:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=BA=9F=E5=BC=83=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=88=A4=E6=96=AD?= 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 07592671..63e1622f 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -132,7 +132,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess if ($this->disuse) { // 废弃字段 foreach ((array) $this->disuse as $key) { - if (isset($this->data[$key])) { + if (array_key_exists($key, $this->data)) { unset($this->data[$key]); } }