Skip to content

Commit 6eb5253

Browse files
Merge pull request #19049 from kamil-tekiela/Fix-impossible-condition-from-#18630
Fix impossible condition from #18630
2 parents af24b29 + f461ee9 commit 6eb5253

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/Table/Search.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,12 @@ private function generateWhereClause(): string
8181
return ' WHERE ' . $_POST['customWhereClause'];
8282
}
8383

84-
// If there are no search criteria set or no unary criteria operators,
85-
// return
8684
if (
87-
! isset($_POST['criteriaColumnOperators'])
88-
|| (
89-
! isset($_POST['criteriaValues'])
90-
&& ! isset($_POST['criteriaColumnOperators'])
91-
&& ! isset($_POST['geom_func'])
85+
! isset(
86+
$_POST['criteriaColumnOperators'],
87+
$_POST['criteriaValues'],
88+
$_POST['criteriaColumnNames'],
89+
$_POST['criteriaColumnTypes'],
9290
)
9391
) {
9492
return '';

0 commit comments

Comments
 (0)