From 11f750071c6c339125fb7969ab1dbc70a1d230bb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 22 Oct 2016 13:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E9=94=99=E8=AF=AF?= 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 57a1fc50..cf580b20 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -773,7 +773,7 @@ class Query $prefix = $this->prefix; if (is_array($join)) { // 支持数据表别名 - list($table, $alias) = ecch($join); + list($table, $alias) = each($join); } elseif ($prefix && 0 !== strpos($join, $prefix) && 0 !== strpos($join, '__')) { $table = $this->getTable($join); $alias = $join;