Skip to content

Commit

Permalink
fix #14468 by fixing another issue with PR 14188 (#14476)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Jul 26, 2016
1 parent a305c41 commit 9fede19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function paginate($perPage = null, $columns = ['*'], $pageName = 'page',

$total = $query->getCountForPagination();

$results = $total ? $this->forPage($page, $perPage)->get($columns) : [];
$results = $total ? $this->forPage($page, $perPage)->get($columns) : new Collection();

return new LengthAwarePaginator($results, $total, $perPage, $page, [
'path' => Paginator::resolveCurrentPath(),
Expand Down

0 comments on commit 9fede19

Please sign in to comment.