This commit is contained in:
lalka2016 2023-08-06 15:47:54 +03:00
parent cb8dd4d12d
commit c3ac279a25

View file

@ -415,7 +415,7 @@ final class GroupPresenter extends OpenVKPresenter
$this->assertUserLoggedIn(); $this->assertUserLoggedIn();
$club = $this->clubs->get($id); $club = $this->clubs->get($id);
if(!$club || method_exists($club, "isDeleted") && $club->isDeleted()) if(!$club)
$this->notFound(); $this->notFound();
else else
$this->template->club = $club; $this->template->club = $club;
@ -447,7 +447,7 @@ final class GroupPresenter extends OpenVKPresenter
$this->assertUserLoggedIn(); $this->assertUserLoggedIn();
$club = $this->clubs->get($id); $club = $this->clubs->get($id);
if(!$club || method_exists($club, "isDeleted") && $club->isDeleted()) if(!$club)
$this->notFound(); $this->notFound();
else else
$this->template->club = $club; $this->template->club = $club;