This commit is contained in:
thinkphp
2016-02-02 00:03:42 +08:00
4 changed files with 5 additions and 5 deletions

View File

@@ -668,7 +668,7 @@ abstract class Driver
$count = count($val);
$rule = isset($val[$count - 1]) ? (is_array($val[$count - 1]) ? strtoupper($val[$count - 1][0]) : strtoupper($val[$count - 1])) : '';
if (in_array($rule, ['AND', 'OR', 'XOR'])) {
$count = $count - 1;
--$count;
} else {
$rule = 'AND';
}