mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12158] The pagination start value should be 0 when there are no items.
PHPBB3-12158
This commit is contained in:
parent
2cc6d03cca
commit
151c05e92e
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ class pagination
|
|||
{
|
||||
if ($start < 0 || $start >= $num_items)
|
||||
{
|
||||
return ($start < 0) ? 0 : floor(($num_items - 1) / $per_page) * $per_page;
|
||||
return ($start < 0 || $num_items <= 0) ? 0 : floor(($num_items - 1) / $per_page) * $per_page;
|
||||
}
|
||||
|
||||
return $start;
|
||||
|
|
Loading…
Add table
Reference in a new issue