Skip to content

Commit

Permalink
修正一处BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Apr 26, 2018
1 parent 6e2d3ac commit c6e263b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/think/db/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ protected function parseExpress()
}
}

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

Expand Down

0 comments on commit c6e263b

Please sign in to comment.