mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Fix error when using PageHandler Iterator
PageHandler Iterator 사용 시 page_count 확인 코드 오류 수정
This commit is contained in:
parent
1a913c3e49
commit
7a4055862d
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ class PageHandler extends Handler implements Iterator
|
||||||
public function valid(): bool
|
public function valid(): bool
|
||||||
{
|
{
|
||||||
$page = $this->first_page + $this->point;
|
$page = $this->first_page + $this->point;
|
||||||
return $this->point <= $this->page_count && $page <= $this->last_page;
|
return $this->point < $this->page_count && $page <= $this->last_page;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue