修正一处BUG

This commit is contained in:
thinkphp
2018-04-26 11:08:28 +08:00
parent 6e2d3acabd
commit c6e263be4b

View File

@@ -2944,7 +2944,7 @@ class Query
}
}
if (isset(static::$readMaster['*']) || isset(static::$readMaster[$options['table']])) {
if (isset(static::$readMaster['*']) || (is_string($options['table']) && isset(static::$readMaster[$options['table']]))) {
$options['master'] = true;
}