From 3568b889bf571241ed2ec77ee3e025899b90c1e7 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Wed, 16 Dec 2015 15:42:24 +0100 Subject: [PATCH] Update list.php Fix page offset calculation --- htdocs/product/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index b656b88efc6..c09100bd198 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -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";