Skip to content

Commit

Permalink
Merge pull request #149 from veneliniliev/master
Browse files Browse the repository at this point in the history
When search "0"
  • Loading branch information
nicolaslopezj authored Jun 21, 2018
2 parents 55b26c0 + b82dd07 commit 813a860
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 @@ -41,7 +41,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 813a860

Please sign in to comment.