Skip to content

Commit 959f724

Browse files
authored
Merge pull request #302 from DrowningElysium/patch-1
Results can be null
2 parents a9c27a6 + a44c7fd commit 959f724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Engines/TNTSearchEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function performSearch(Builder $builder, array $options = [])
193193
*/
194194
public function map(Builder $builder, $results, $model)
195195
{
196-
if (is_null($results['ids']) || count($results['ids']) === 0) {
196+
if (empty($results['ids'])) {
197197
return Collection::make();
198198
}
199199

0 commit comments

Comments
 (0)