From 6aaa1da03e63c884e60ebc0bd3c67bc98963469f Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 14 Feb 2024 14:45:58 +0200 Subject: [PATCH] fix pagination offset --- src/Controller/MainController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index 1f23f0d..3ca2b10 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -102,7 +102,7 @@ class MainController extends AbstractController [ 'time' => 'desc' ], - $request->get('part') > 1 ? (int) $request->get('part') * $this->getParameter('app.main.index.limit') : 0, + $request->get('part') > 1 ? ((int) $request->get('part') - 1) * (int) $this->getParameter('app.main.index.limit') : 0, $this->getParameter('app.main.index.limit') ), 'title' => $this->_title(