ViewPeople: fix incorrect pagination count #55

Merged
Aaron merged 1 commits from yorick/pics:fix/viewpeople-pagination-count into master 2026-02-14 12:43:59 +01:00
Showing only changes of commit 7f7067852a - Show all commits

View File

@@ -18,7 +18,7 @@ class ViewPeople extends HTMLController
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$start = ($page - 1) * self::PER_PAGE; $start = ($page - 1) * self::PER_PAGE;
$total_count = Tag::getCount(1, 'Person'); $total_count = Tag::getCount(1, 'Person', true);
// Fetch subalbums. // Fetch subalbums.
$subalbums = Tag::getPeople(0, $start, self::PER_PAGE); $subalbums = Tag::getPeople(0, $start, self::PER_PAGE);