Skip to content

Commit 62a0b29

Browse files
author
Bram Wubs
committed
Add check if result is null
1 parent 8d0f880 commit 62a0b29

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)