Skip to content

Commit 6e68993

Browse files
authored
Merge pull request #1 from HexPande/patch-1
Results can be null
2 parents 2690996 + 3b3b527 commit 6e68993

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Engines/TNTSearchEngine.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ public function getBuilder($model)
252252
*/
253253
public function mapIds($results)
254254
{
255+
if (empty($results['ids'])) {
256+
return collect();
257+
}
258+
255259
return collect($results['ids'])->values();
256260
}
257261

0 commit comments

Comments
 (0)