修正一处兼容问题

This commit is contained in:
thinkphp
2017-12-06 15:02:00 +08:00
parent 576273cdf1
commit ecd243bb41

View File

@@ -704,7 +704,7 @@ class Query
{ {
// 传入的表名为数组 // 传入的表名为数组
if (is_array($join)) { if (is_array($join)) {
list($table, $alias) = each($join); list($table, $alias) = $join;
} else { } else {
$join = trim($join); $join = trim($join);
if (false !== strpos($join, '(')) { if (false !== strpos($join, '(')) {