修正Query类getJoinTable方法

This commit is contained in:
thinkphp
2016-11-02 10:32:26 +08:00
parent 1d30c47de3
commit 3a1cf0bb9a

View File

@@ -694,7 +694,7 @@ class Query
$alias = $join;
}
}
if (false === strpos($table, '.') && 0 !== strpos($table, $prefix) && 0 !== strpos($table, '__')) {
if ($prefix && false === strpos($table, '.') && 0 !== strpos($table, $prefix) && 0 !== strpos($table, '__')) {
$table = $this->getTable($table);
}
}