fixed currentpage bug

git-svn-id: http://yolanda.mister-muffin.de/svn@326 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-04-27 20:12:14 +00:00
parent 0a696bd130
commit e7dbb39515

View file

@ -65,7 +65,7 @@ sub fill_results
#on 0.0000000000001% of all queries - this is a risk we can handle #on 0.0000000000001% of all queries - this is a risk we can handle
$lastpage = int($resultcount/$pagesize+0.99999999999999); $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; $dbquery .= " limit ".($currentpage-1)*$pagesize.", ".$pagesize;