From 1543d60811820a869c243f938cb4c9a5f9963bdb Mon Sep 17 00:00:00 2001 From: web-care Date: Mon, 23 Oct 2017 18:27:13 +0300 Subject: [PATCH] whereNotBetween params fix --- src/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Query.php b/src/Query.php index c8ab177..b9c00c7 100755 --- a/src/Query.php +++ b/src/Query.php @@ -607,8 +607,8 @@ public function whereBetween($name, $first_value, $last_value = null) { if (is_array($first_value) && count($first_value) == 2) { - $first_value = $first_value[0]; $last_value = $first_value[1]; + $first_value = $first_value[0]; } $this->filter[] = ["range" => [$name => ["gte" => $first_value, "lte" => $last_value]]]; @@ -630,8 +630,8 @@ public function whereNotBetween($name, $first_value, $last_value = null) { if (is_array($first_value) && count($first_value) == 2) { - $first_value = $first_value[0]; $last_value = $first_value[1]; + $first_value = $first_value[0]; } $this->must_not[] = ["range" => [$name => ["gte" => $first_value, "lte" => $last_value]]];