fix pagination offset

This commit is contained in:
ghost 2024-02-14 14:44:16 +02:00
parent 037baf4eac
commit c2b49634d0

View File

@ -50,7 +50,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')
)
],