From 2375e257b3e592a8833802fe2033854c3b418ad7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 30 Nov 2015 17:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bmodel=E7=B1=BB=E7=9A=84=5Fpar?= =?UTF-8?q?seOptions=E6=96=B9=E6=B3=95=20=E5=8F=96=E6=B6=88=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=AD=97=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/think/model.php b/library/think/model.php index cb84a0da..a03c568e 100644 --- a/library/think/model.php +++ b/library/think/model.php @@ -562,8 +562,6 @@ class Model if (is_scalar($val) && empty($options['bind'][':' . $key])) { $this->_parseType($options['where'], $key); } - } elseif ('_' != substr($key, 0, 1) && false === strpos($key, '.') && false === strpos($key, '(') && false === strpos($key, '|') && false === strpos($key, '&')) { - unset($options['where'][$key]); } } }