Skip to content

Commit

Permalink
DataGrid: fixes function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Nov 25, 2019
1 parent 94279ca commit e42547a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2784,7 +2784,7 @@ public function getPerPage()
$per_page = $this->per_page ?: reset($items_per_page_list);

if (($per_page !== 'all' && !in_array((int) $this->per_page, $items_per_page_list, true))
|| ($per_page === 'all' && !array_key_exists($this->per_page, $items_per_page_list, true))) {
|| ($per_page === 'all' && !array_key_exists($this->per_page, $items_per_page_list))) {
$per_page = reset($items_per_page_list);
}

Expand Down

0 comments on commit e42547a

Please sign in to comment.