[activity] handle case when there is no action associated to selected

issues
This commit is contained in:
2021-11-29 22:43:14 +01:00
parent 55b9242690
commit 7b0c7988df
4 changed files with 41 additions and 14 deletions

View File

@@ -103,6 +103,10 @@ class Paginator implements PaginatorInterface
public function countPages()
{
if (0 === $this->itemPerPage) {
return 1;
}
$nb = floor($this->totalItems / $this->itemPerPage);
if ($this->totalItems % $this->itemPerPage > 0) {