mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
Users: Remove @ from the beginning of the Telegram account name when saving it
This commit is contained in:
parent
d782dd055a
commit
ab231aa55f
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ final class UserPresenter extends OpenVKPresenter
|
|||
}
|
||||
} elseif($_GET['act'] === "contacts") {
|
||||
$user->setEmail_Contact(empty($this->postParam("email_contact")) ? NULL : $this->postParam("email_contact"));
|
||||
$user->setTelegram(empty($this->postParam("telegram")) ? NULL : $this->postParam("telegram"));
|
||||
$user->setTelegram(empty($this->postParam("telegram")) ? NULL : ltrim($this->postParam("telegram"), "@"));
|
||||
$user->setCity(empty($this->postParam("city")) ? NULL : $this->postParam("city"));
|
||||
$user->setAddress(empty($this->postParam("address")) ? NULL : $this->postParam("address"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue