Skip to content

Commit 57388ba

Browse files
authored
Merge pull request #241 from Wedrix/patch-1
Update paginate method in TNTSearchEngine.php
2 parents 4275bde + 0138cbc commit 57388ba

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
@@ -127,7 +127,7 @@ public function paginate(Builder $builder, $perPage, $page)
127127
if (array_key_exists($page - 1, $chunks)) {
128128
$results['ids'] = $chunks[$page - 1];
129129
} else {
130-
$results['ids'] = end($chunks);
130+
$results['ids'] = [];
131131
}
132132

133133
return $results;

0 commit comments

Comments
 (0)