diff --git a/framework/db/QueryTrait.php b/framework/db/QueryTrait.php index c7635ce..541c4fa 100644 --- a/framework/db/QueryTrait.php +++ b/framework/db/QueryTrait.php @@ -266,7 +266,7 @@ trait QueryTrait case 'BETWEEN': case 'NOT BETWEEN': if (array_key_exists(1, $condition) && array_key_exists(2, $condition)) { - if ($this->isEmpty($condition[2]) || $this->isEmpty($condition[3])) { + if ($this->isEmpty($condition[1]) || $this->isEmpty($condition[2])) { return []; } }