From a149fc493f62f31e3806f353dde0c4dc812be6b2 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 2 Jul 2014 08:18:15 +0200 Subject: Fix pagination in the package request list This was not implemented properly in commit 8260111 (Add a package request list, 2014-06-24). Signed-off-by: Lukas Fleischer --- web/html/pkgreq.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/html') diff --git a/web/html/pkgreq.php b/web/html/pkgreq.php index 674f1c1..4b7d6cf 100644 --- a/web/html/pkgreq.php +++ b/web/html/pkgreq.php @@ -14,9 +14,6 @@ if (!isset($base_id)) { exit(); } - $results = pkgreq_list(); - $total = count($results); - /* Sanitize paging variables. */ if (isset($_GET['O'])) { $_GET['O'] = max(intval($_GET['O']), 0); @@ -30,6 +27,9 @@ if (!isset($base_id)) { $_GET["PP"] = 50; } + $results = pkgreq_list($_GET['O'], $_GET['PP']); + $total = pkgreq_count(); + /* Calculate the results to use. */ $first = $_GET['O'] + 1; -- cgit v1.2.3-54-g00ecf