Skip to content

Commit 84f6dc6

Browse files
authored
Merge pull request #226 from megawubs/master
Add check if result is null
2 parents 8d0f880 + 62a0b29 commit 84f6dc6

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
@@ -177,7 +177,7 @@ protected function performSearch(Builder $builder, array $options = [])
177177
*/
178178
public function map(Builder $builder, $results, $model)
179179
{
180-
if (count($results['ids']) === 0) {
180+
if (is_null($results['ids']) || count($results['ids']) === 0) {
181181
return Collection::make();
182182
}
183183

0 commit comments

Comments
 (0)