mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Fix #80
This commit is contained in:
parent
640dd7f04f
commit
cf229bac0b
@ -571,7 +571,7 @@ class Page {
|
|||||||
$total = $result['count'];
|
$total = $result['count'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$pages = (int)($total / $this->settings->limit_per_page) + 1;
|
$pages = (int)(($total - 1) / $this->settings->limit_per_page) + 1;
|
||||||
|
|
||||||
$cur = $this->page;
|
$cur = $this->page;
|
||||||
$prev = $cur - 1;
|
$prev = $cur - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user