From 1bd1c51a660d0d04b2f04d32d579793d76f1c3a1 Mon Sep 17 00:00:00 2001 From: "robert%accettura.com" Date: Fri, 23 Dec 2005 06:35:13 +0000 Subject: [PATCH] the correct pagination regression fix --- tools/reporter/app/query/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/reporter/app/query/index.php b/tools/reporter/app/query/index.php index 9a1e4240f6fc..2ef0549a22ec 100644 --- a/tools/reporter/app/query/index.php +++ b/tools/reporter/app/query/index.php @@ -121,6 +121,10 @@ if($query_input['page'] < 10){ $content->assign('start', $start); $content->assign('step', 1); -$content->assign('amt', ceil($result['totalResults']/$query_input['show'])); +if(ceil($result['totalResults']/$query_input['show']) < 20){ + $content->assign('amt', ceil($result['totalResults']/$query_input['show'])); +} else { + $content->assign('amt', 20); +} displayPage($content, 'query', 'query.tpl'); ?> \ No newline at end of file