From cde91dd3a2f85f3e56f52be999244547caa2eae5 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 6 Jul 2019 16:20:53 +0300 Subject: [PATCH] Flextype Core: Entries - issue with binding arguments inside method fetchAll() - fixed. #182 --- flextype/core/Entries.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index 8451c077..46d9256b 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -178,6 +178,7 @@ class Entries // Bind: where if (isset($args['where']['key']) && isset($args['where']['expr']) && isset($args['where']['value'])) { + $bind_where = []; $bind_where['where']['key'] = $args['where']['key']; $bind_where['where']['expr'] = $expression[$args['where']['expr']]; $bind_where['where']['value'] = $args['where']['value']; @@ -187,6 +188,7 @@ class Entries // Bind: and where if (isset($args['and_where']['key']) && isset($args['and_where']['expr']) && isset($args['and_where']['value'])) { + $bind_and_where = []; $bind_and_where['and_where']['key'] = $args['and_where']['key']; $bind_and_where['and_where']['expr'] = $expression[$args['and_where']['expr']]; $bind_and_where['and_where']['value'] = $args['and_where']['value']; @@ -196,6 +198,7 @@ class Entries // Bind: or where if (isset($args['or_where']['key']) && isset($args['or_where']['expr']) && isset($args['or_where']['value'])) { + $bind_or_where = []; $bind_or_where['or_where']['key'] = $args['or_where']['key']; $bind_or_where['or_where']['expr'] = $expression[$args['or_where']['expr']]; $bind_or_where['or_where']['value'] = $args['or_where']['value']; @@ -205,6 +208,7 @@ class Entries // Bind: order by if (isset($args['order_by']['field']) && isset($args['order_by']['direction'])) { + $bind_order_by = []; $bind_order_by['order_by']['field'] = $args['order_by']['field']; $bind_order_by['order_by']['direction'] = $args['order_by']['direction']; } else {