From 2b79a5227563644644a8bdee0109ab108e977d76 Mon Sep 17 00:00:00 2001 From: Ro Date: Wed, 14 Apr 2021 15:08:09 -0700 Subject: [PATCH] minor fix to pagination --- brain/data/Book.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brain/data/Book.inc.php b/brain/data/Book.inc.php index d9dbf72..243f8cd 100644 --- a/brain/data/Book.inc.php +++ b/brain/data/Book.inc.php @@ -218,7 +218,7 @@ class Book $filtered = $content; break; } - $numOfPages = ceil(count($filtered) / $limit); + $numOfPages = ceil(count($filtered) / ($limit + 1)); $folder = []; if (count($filtered) != 0) {