1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-09 14:46:53 +02:00

feat(element-queries): The assignment to $_expr removed from collect_filter #436

This commit is contained in:
Awilum
2020-07-23 23:38:49 +03:00
parent a8e63c4f0f
commit 9b9649ed9f

View File

@@ -95,7 +95,6 @@ if (! function_exists('collect_filter')) {
// Exec: and where
if (isset($bind_and_where)) {
$_expr = [];
foreach ($bind_and_where as $key => $value) {
$collection->andWhere($value['where']['key'], $value['where']['expr'], $value['where']['value']);
}
@@ -103,7 +102,6 @@ if (! function_exists('collect_filter')) {
// Exec: or where
if (isset($bind_or_where)) {
$_expr = [];
foreach ($bind_or_where as $key => $value) {
$collection->orWhere($value['where']['key'], $value['where']['expr'], $value['where']['value']);
}