Maybe fix tickets list

This commit is contained in:
lalka2018 2023-10-28 14:33:52 +03:00
parent e2dee72c69
commit e48b696aeb

View file

@ -67,7 +67,7 @@ final class SupportPresenter extends OpenVKPresenter
$this->template->count = $this->tickets->getTicketsCountByUserId($this->user->id);
if($this->template->mode === "list") {
$this->template->page = (int) ($this->queryParam("p") ?? 1);
$this->template->tickets = $this->tickets->getTicketsByUserId($this->user->id, $this->template->page);
$this->template->tickets = iterator_to_array($this->tickets->getTicketsByUserId($this->user->id, $this->template->page));
}
if($this->template->mode === "new")