We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07c087 commit d6d19e4Copy full SHA for d6d19e4
src/Paginator.php
@@ -31,7 +31,7 @@ public function __construct(
31
) {
32
$this->total = count($items);
33
$this->page = Http::get('p', 1);
34
- $this->per_page = Http::get('pp', 50);
+ $this->per_page = min(500, max(1, Http::get('pp', 50)));
35
$this->paginated = array_slice($items, $this->per_page * ($this->page - 1), $this->per_page, true);
36
}
37
0 commit comments