Skip to content

Commit

Permalink
Fixed limit problem if no limit is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Nov 18, 2019
1 parent be7188a commit c270009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Builders/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public function get($filters = [] )
protected function parseFilters($filters = [] )
{

if (array_search('limit', array_column($filters, 0)) !== (count($filters) - 1)) {
$limit = array_search('limit', array_column($filters, 0));
if ($limit !== false && $limit !== (count($filters) - 1)) {

unset($filters[count($filters) - 1]);
}
Expand Down

0 comments on commit c270009

Please sign in to comment.