Update NotesPresenter.php

This commit is contained in:
samukhin 2021-05-05 20:07:58 +03:00 committed by GitHub
parent a1110d1af9
commit 78ff2f0461
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ final class NotesPresenter extends OpenVKPresenter
$user = (new Users)->get($owner);
if(!$user) $this->notFound();
$this->template->notes = $this->notes->getUserNotes($user, $this->queryParam("p") ?? 1);
$this->template->notes = $this->notes->getUserNotes($user, (int)($this->queryParam("p") ?? 1));
$this->template->count = $this->notes->getUserNotesCount($user);
$this->template->owner = $user;
$this->template->paginatorConf = (object) [