From cf229bac0ba7478b81dac3fcd5f22ba645404da0 Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Thu, 30 Dec 2021 10:39:31 +0200 Subject: [PATCH] Fix #80 --- inc/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index aa6a6f6..a028f82 100644 --- a/inc/page.php +++ b/inc/page.php @@ -571,7 +571,7 @@ class Page { $total = $result['count']; } - $pages = (int)($total / $this->settings->limit_per_page) + 1; + $pages = (int)(($total - 1) / $this->settings->limit_per_page) + 1; $cur = $this->page; $prev = $cur - 1;