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 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 11:19:04 +01:00
parent ea4983e967
commit 7f7067852a

View File

@@ -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);