From e7ee93fec3c96ddc0359885231e2a49e6ef23ac1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 27 Aug 2019 10:33:16 +0300 Subject: [PATCH] fix(core): issue with bind_where in the Entries #186 --- flextype/core/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index a79c80aa..25b952f9 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -293,7 +293,7 @@ class Entries $criteria = new Criteria(); // Exec: where - if (isset($bind_and_where['where']['key']) && isset($bind_and_where['where']['expr']) && isset($bind_and_where['where']['value'])) { + if (isset($bind_where['where']['key']) && isset($bind_where['where']['expr']) && isset($bind_where['where']['value'])) { $expr = new Comparison($bind_where['where']['key'], $bind_where['where']['expr'], $bind_where['where']['value']); $criteria->where($expr); }