Fix error when using PageHandler Iterator

PageHandler Iterator 사용 시 page_count 확인 코드 오류 수정
This commit is contained in:
dewekk 2024-01-08 21:21:11 +09:00 committed by GitHub
parent 1a913c3e49
commit 7a4055862d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ class PageHandler extends Handler implements Iterator
public function valid(): bool
{
$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;
}
/**