Skip to content

Commit

Permalink
Update SearchableTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
veneliniliev authored Nov 2, 2017
1 parent c067f11 commit b82dd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function scopeSearchRestricted(Builder $q, $search, $restriction, $thresh
$query->select($this->getTable() . '.*');
$this->makeJoins($query);

if ( ! $search)
if ($search === false)
{
return $q;
}
Expand Down

0 comments on commit b82dd07

Please sign in to comment.