mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Groups: Fix error when changing website
This commit is contained in:
parent
2c31900d97
commit
3d07339431
1 changed files with 2 additions and 2 deletions
|
@ -208,9 +208,9 @@ final class GroupPresenter extends OpenVKPresenter
|
||||||
|
|
||||||
$website = $this->postParam("website") ?? "";
|
$website = $this->postParam("website") ?? "";
|
||||||
if(empty($website))
|
if(empty($website))
|
||||||
$user->setWebsite(NULL);
|
$club->setWebsite(NULL);
|
||||||
else
|
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) {
|
if($_FILES["ava"]["error"] === UPLOAD_ERR_OK) {
|
||||||
$photo = new Photo;
|
$photo = new Photo;
|
||||||
|
|
Loading…
Reference in a new issue