Skip to content

Commit

Permalink
DataGrid: revert array_keys in DataGrid::getPerPage()
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Aug 7, 2019
1 parent 6782e95 commit 8601759
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2783,8 +2783,6 @@ public function getPerPage()

$per_page = $this->per_page ?: reset($items_per_page_list);

$items_per_page_list = array_keys($items_per_page_list);

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

0 comments on commit 8601759

Please sign in to comment.