From 40f113b05ffe3ec8ff9f54e94b237087e1393e23 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 3 Jun 2016 16:16:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=E7=B1=BB=E7=9A=84valida?= =?UTF-8?q?teData=E6=96=B9=E6=B3=95=20=E4=BD=BF=E7=94=A8=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E4=BC=A0=E5=80=BC?= 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 79eb1be1..b9c359c3 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -520,7 +520,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess * @param array $data 验证数据 * @return bool */ - protected function validateData($data) + protected function validateData(&$data) { if (!empty($this->validate)) { $info = $this->validate;