Skip to content

Commit

Permalink
skip empty 'where' clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey-harveycameron committed Apr 12, 2023
1 parent 91b834f commit 69a9df5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Extension/FluentExtension.php
Expand Up @@ -581,7 +581,11 @@ public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)

// Apply substitutions
$localisedPredicate = str_replace($conditionSearch, $conditionReplace, $predicate);


if (empty($localisedPredicate)) {
continue;
}

$where[$index] = [
$localisedPredicate => $parameters
];
Expand Down

0 comments on commit 69a9df5

Please sign in to comment.