Update WallPresenter.php

This commit is contained in:
Dmitry Tretyakov 2023-10-25 16:26:01 +07:00
parent 4a394cc452
commit 864e9f73e6

View file

@ -154,7 +154,7 @@ final class WallPresenter extends OpenVKPresenter
$this->template->paginatorConf = (object) [
"count" => $posts->count(),
"page" => (int) ($_GET["p"] ?? 1),
"amount" => sizeof($posts->page((int) ($_GET["p"] ?? 1), $perPage)),
"amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->count(),
"perPage" => $perPage,
];
$this->template->posts = [];