Skip to content

Commit

Permalink
Ensure or parameter is parsed as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Nov 20, 2016
1 parent 6a07596 commit 96c0b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EloquentBuilderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function applyFilter(Builder $query, array $filter, $or = false, array

call_user_func([$query, $method], sprintf('%s.%s', $table, $key));
} else {
$method = $or === true ? 'orWhere' : 'where';
$method = filter_var($or, FILTER_VALIDATE_BOOLEAN) ? 'orWhere' : 'where';
$clauseOperator = null;
$databaseField = null;

Expand Down

0 comments on commit 96c0b84

Please sign in to comment.