From 86860d6210f5a5d54b830603f3883657ec3d6207 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 7 Dec 2017 14:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3join?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 9a6cd3f7..7f70b736 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -704,7 +704,8 @@ class Query { // 传入的表名为数组 if (is_array($join)) { - list($table, $alias) = $join; + $talbe = key($join); + $alias = current($join); } else { $join = trim($join); if (false !== strpos($join, '(')) {