From c6e263be4b846848900b84514dfedae16a082626 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 26 Apr 2018 11:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84BUG?= 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 21858779..c833cc05 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2944,7 +2944,7 @@ class Query } } - if (isset(static::$readMaster['*']) || isset(static::$readMaster[$options['table']])) { + if (isset(static::$readMaster['*']) || (is_string($options['table']) && isset(static::$readMaster[$options['table']]))) { $options['master'] = true; }