Merge pull request #2263 from dewekk/fix-page-handler

PageHandler Iterator 사용 시 페이지가 잘못 표시되는 문제 수정
This commit is contained in:
Kijin Sung 2024-01-09 10:23:56 +09:00 committed by GitHub
commit b591f023ef
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;
}
/**