修正Query类一处错误

This commit is contained in:
thinkphp
2016-10-22 13:25:31 +08:00
parent eb103a63a5
commit 11f750071c

View File

@@ -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;