Skip to content

Commit

Permalink
Merge pull request #8026 from c3do/patch-3
Browse files Browse the repository at this point in the history
Fix #8026 Remove PHP Warning adding empty($page)
  • Loading branch information
eldy committed Jan 4, 2018
2 parents 460bdd4 + 4ed86c8 commit f25b2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/accountancy/bookkeeping/list.php
Expand Up @@ -85,7 +85,7 @@
$sortfield = GETPOST('sortfield', 'alpha');
$sortorder = GETPOST('sortorder', 'alpha');
$page = GETPOST('page','int');
if ($page < 0) { $page = 0; }
if (empty($page) || $page < 0) { $page = 0; }
$offset = $limit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;
Expand Down

0 comments on commit f25b2eb

Please sign in to comment.