Skip to content

Commit

Permalink
Merge pull request teamtnt#1 from HexPande/patch-1
Browse files Browse the repository at this point in the history
Results can be null
  • Loading branch information
HexPande authored Mar 17, 2021
2 parents 2690996 + 3b3b527 commit 6e68993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Engines/TNTSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ public function getBuilder($model)
*/
public function mapIds($results)
{
if (empty($results['ids'])) {
return collect();
}

return collect($results['ids'])->values();
}

Expand Down

0 comments on commit 6e68993

Please sign in to comment.