From 8af400a8ac8cea270ee7bd36005b2d1ba249b7fa Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Jul 2016 17:26:26 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Model.php b/library/think/Model.php index 7d5c96c2..63122af5 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -369,6 +369,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $value = $this->getData($name); } catch (InvalidArgumentException $e) { $notFound = true; + $value = null; } // 检测属性获取器