From b975e10255a24ba27c4616d834a568bca54bedc0 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Wed, 19 Jun 2024 14:43:17 +0200 Subject: [PATCH] FilterProcessor: Fix predicate assembling for `EXISTS` and `NOT EXISTS` operators --- src/Compat/FilterProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compat/FilterProcessor.php b/src/Compat/FilterProcessor.php index 6835e25..1ed1c3d 100644 --- a/src/Compat/FilterProcessor.php +++ b/src/Compat/FilterProcessor.php @@ -65,7 +65,7 @@ public static function assemblePredicate(Filter\Condition $filter) $column = $filter->getColumn(); $expression = $filter->getValue(); - if (is_array($expression) || $expression instanceof Select) { + if (! empty($column) && (is_array($expression) || $expression instanceof Select)) { $nullVerification = true; if (is_array($column)) { if (count($column) === 1) {