From 431c09e0823b1e872a5d6880de2693aeebd91d7a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 21 Sep 2016 14:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84view?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20=E7=AC=AC=E4=BA=8C=E4=B8=AA=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=BB=98=E8=AE=A4=E5=80=BC=E6=9B=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?true=20=E8=8E=B7=E5=8F=96=E5=85=A8=E9=83=A8=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 637b0bc5..b498b1ea 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -771,7 +771,7 @@ class Query * @param string $type JOIN类型 * @return $this */ - public function view($join, $field = null, $on = null, $type = 'INNER') + public function view($join, $field = true, $on = null, $type = 'INNER') { $this->options['view'] = true; if (is_array($join) && is_null($field)) {