From e7dbb39515828ba05864a6e261fbc6e3c295fdd2 Mon Sep 17 00:00:00 2001 From: josch Date: Sun, 27 Apr 2008 20:12:14 +0000 Subject: [PATCH] fixed currentpage bug git-svn-id: http://yolanda.mister-muffin.de/svn@326 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/functions.pl b/trunk/functions.pl index 9db2ba9..8c771f7 100644 --- a/trunk/functions.pl +++ b/trunk/functions.pl @@ -65,7 +65,7 @@ sub fill_results #on 0.0000000000001% of all queries - this is a risk we can handle $lastpage = int($resultcount/$pagesize+0.99999999999999); - $currentpage = $query->param('page') or $currentpage = 1; + $currentpage = int($query->param('page')) or $currentpage = 1; $dbquery .= " limit ".($currentpage-1)*$pagesize.", ".$pagesize;