From 7f7067852ab93e0940b22eb29461d0c754b3c35f Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sat, 14 Feb 2026 11:19:04 +0100 Subject: [PATCH] ViewPeople: fix incorrect pagination count Tag::getCount was called without the third argument, causing it to count tags where kind \!= 'Person' instead of kind = 'Person'. Co-Authored-By: Claude Opus 4.6 --- controllers/ViewPeople.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/ViewPeople.php b/controllers/ViewPeople.php index ee00b3b..f241109 100644 --- a/controllers/ViewPeople.php +++ b/controllers/ViewPeople.php @@ -18,7 +18,7 @@ class ViewPeople extends HTMLController $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $start = ($page - 1) * self::PER_PAGE; - $total_count = Tag::getCount(1, 'Person'); + $total_count = Tag::getCount(1, 'Person', true); // Fetch subalbums. $subalbums = Tag::getPeople(0, $start, self::PER_PAGE);