1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

Merge pull request #4623 from rxu/ticket/14971

[ticket/14971] Fix pagination PHP warning on PHP 7.1

* rxu/ticket/14971:
  [ticket/14971] Add on_page test with the string arguments
  [ticket/14971] Fix pagination PHP warning on PHP 7.1
This commit is contained in:
Tristan Darricau
2017-01-08 18:35:22 +01:00
2 changed files with 7 additions and 1 deletions

View File

@@ -284,7 +284,7 @@ class pagination
*/
public function get_on_page($per_page, $start)
{
return floor($start / $per_page) + 1;
return floor((int) $start / (int) $per_page) + 1;
}
/**