From 33f027b84b5d1e704723111a015ce4b10835a1fb Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Sat, 13 Nov 2021 19:21:46 +0700 Subject: [PATCH] Clubs: Added a getWebsite function --- Web/Models/Entities/Club.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Web/Models/Entities/Club.php b/Web/Models/Entities/Club.php index 1da1850e..3aa91312 100644 --- a/Web/Models/Entities/Club.php +++ b/Web/Models/Entities/Club.php @@ -336,6 +336,11 @@ class Club extends RowModel return !is_null($this->getRecord()->related("group_coadmins.club")->where("user", $id)->fetch()); } + + function getWebsite(): ?string + { + return $this->getRecord()->website; + } use Traits\TSubscribable; }