From 3f138c0395e88b107c1e3db229e350926530458f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 30 May 2016 18:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=E7=B1=BB=E7=9A=84=5F=5F?= =?UTF-8?q?isset=E6=96=B9=E6=B3=95?= 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 8ca196bb..759484a2 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1175,7 +1175,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess */ public function __isset($name) { - if (isset($this->data[$name])) { + if (array_key_exists($name, $this->data)) { return true; } elseif ($this->__get($name)) { return true;