Skip to content

Commit

Permalink
fix or clauses for non-string requests
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Jun 14, 2023
1 parent 96761b3 commit 2536635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LaravelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ protected function parseFilterGroups(array $filter_groups)

$or = false;
if (array_key_exists('or', $group)) {
if ($group['or'] === 'true') {
if ($group['or'] === 'true' || $group['or'] === true) {
$or = true;
} else if ($group['or'] === 'false') {
} else if ($group['or'] === 'false' || $group['or'] === false) {
$or = false;
}
}
Expand Down

0 comments on commit 2536635

Please sign in to comment.