From 672a8400c313158983d2c6ce1e14b1b93c88471d Mon Sep 17 00:00:00 2001 From: Dmitry Tretyakov <76806170+tretdm@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:18:30 +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 95df567e9..68d648ed2 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -74,7 +74,7 @@ function renderWall(int $user, bool $embedded = false): void $this->template->paginatorConf = (object) [ "count" => $this->template->count, "page" => (int) ($_GET["p"] ?? 1), - "amount" => $this->template->posts->getRowCount(), + "amount" => $this->template->posts->count(), "perPage" => OPENVK_DEFAULT_PER_PAGE, ];