From 3d0733943198cedabf1455b2ca06d482c535dcda Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko <50026114+maksalees@users.noreply.github.com> Date: Sat, 13 Nov 2021 23:43:51 +0200 Subject: [PATCH] Groups: Fix error when changing website --- Web/Presenters/GroupPresenter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/Presenters/GroupPresenter.php b/Web/Presenters/GroupPresenter.php index 1b2992d6..de55c569 100644 --- a/Web/Presenters/GroupPresenter.php +++ b/Web/Presenters/GroupPresenter.php @@ -208,9 +208,9 @@ final class GroupPresenter extends OpenVKPresenter $website = $this->postParam("website") ?? ""; if(empty($website)) - $user->setWebsite(NULL); + $club->setWebsite(NULL); else - $user->setWebsite((!parse_url($website, PHP_URL_SCHEME) ? "https://" : "") . $website); + $club->setWebsite((!parse_url($website, PHP_URL_SCHEME) ? "https://" : "") . $website); if($_FILES["ava"]["error"] === UPLOAD_ERR_OK) { $photo = new Photo;