Merge pull request #10133 from defrance/patch-133

fix #9475
This commit is contained in:
Laurent Destailleur 2018-12-01 16:19:10 +01:00 committed by GitHub
commit 2069223e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ $sortfield = GETPOST("sortfield");
$sortorder = GETPOST("sortorder");
if (!$sortorder) $sortorder = 'DESC';
if (!$sortfield) $sortfield = 'cf.date_creation';
$page = GETPOST("page");
$page = GETPOST('page','int') ? GETPOST('page','int') : 0;
if ($page < 0) $page = 0;
$offset = $limit * $page;