From aba5a1b49ae6304736e73b09ef4b786247fd6f29 Mon Sep 17 00:00:00 2001 From: Dmitry Tretyakov <76806170+tretdm@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:50:26 +0700 Subject: [PATCH] Update WallPresenter.php --- Web/Presenters/WallPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index 81bca320a..95df567e9 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -154,7 +154,7 @@ function renderFeed(): void $this->template->paginatorConf = (object) [ "count" => sizeof($posts), "page" => (int) ($_GET["p"] ?? 1), - "amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->getRowCount(), + "amount" => $posts->page((int) ($_GET["p"] ?? 1), $perPage)->count(), "perPage" => $perPage, ]; $this->template->posts = [];