Update list.php

Fix page offset calculation
This commit is contained in:
Francis Appels 2015-12-16 15:42:24 +01:00
parent 973339e071
commit 3568b889bf

View File

@ -61,7 +61,7 @@ $sortfield = GETPOST("sortfield",'alpha');
$sortorder = GETPOST("sortorder",'alpha');
$page = GETPOST("page",'int');
if ($page == -1) { $page = 0; }
$offset = $liste_limit * $page;
$offset = $limit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;
if (! $sortfield) $sortfield="p.ref";