Skip to content

Commit

Permalink
Dev fix - null check in previous commit was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Aug 31, 2023
1 parent 39fa838 commit 9104737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ private function _ssp_filter($query, $http)
$r = $q
->where(
$field->dbField(),
isset($http['searchPanes_null'][$field->name()][$i])
isset($http['searchPanes_null'][$field->name()][$i]) && $http['searchPanes_null'][$field->name()][$i] === 'true'
? null
: $http['searchPanes'][$field->name()][$i],
'='
Expand All @@ -1996,7 +1996,7 @@ private function _ssp_filter($query, $http)
for ($j = 0; $j < count($http['searchPanes'][$field->name()]); ++$j) {
$q->or_where(
$field->dbField(),
isset($http['searchPanes_null'][$field->name()][$j])
isset($http['searchPanes_null'][$field->name()][$j]) && $http['searchPanes_null'][$field->name()][$j] === 'true'
? null
: $http['searchPanes'][$field->name()][$j],
'='
Expand Down

0 comments on commit 9104737

Please sign in to comment.