Skip to content

Commit

Permalink
Check for _per_page existence (#6702)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Dec 23, 2020
1 parent 811b8e3 commit 3ed173b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/AbstractAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ public function getFilterParameters()
}
}

if (!$this->determinedPerPageValue($parameters['_per_page'])) {
if (!isset($parameters['_per_page']) || !$this->determinedPerPageValue($parameters['_per_page'])) {
$parameters['_per_page'] = $this->getMaxPerPage();
}

Expand Down

0 comments on commit 3ed173b

Please sign in to comment.