fixed currentpage bug
git-svn-id: http://yolanda.mister-muffin.de/svn@326 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
0a696bd130
commit
e7dbb39515
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue