Skip to content

Commit

Permalink
Ensure it's an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed Jun 11, 2024
1 parent 26e3107 commit b87cd54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function getPagination(): \Contao\Pagination

public function getCurrentPage(): int
{
return Input::get($this->getUrlParameter()) ?: 1;
return (int) (Input::get($this->getUrlParameter()) ?: 1);
}

/**
Expand Down

0 comments on commit b87cd54

Please sign in to comment.