diff --git a/Web/Presenters/PhotosPresenter.php b/Web/Presenters/PhotosPresenter.php index a09362c8..9aa821b5 100644 --- a/Web/Presenters/PhotosPresenter.php +++ b/Web/Presenters/PhotosPresenter.php @@ -124,7 +124,7 @@ final class PhotosPresenter extends OpenVKPresenter $this->notFound(); $this->template->album = $album; - $this->template->photos = iterator_to_array($album->getPhotos($this->queryParam("page") ?? 1)); + $this->template->photos = iterator_to_array( $album->getPhotos( (int) ($this->queryParam("p") ?? 1) ) ); $this->template->paginatorConf = (object) [ "count" => $album->getPhotosCount(), "page" => $this->queryParam("p") ?? 1,