Fix type error in settings

This commit is contained in:
celestora 2022-08-20 18:03:39 +03:00
parent 155f4821fd
commit d1b878a5a4

View file

@ -460,7 +460,7 @@ final class UserPresenter extends OpenVKPresenter
if($this->template->mode == "finance") { if($this->template->mode == "finance") {
$address = OPENVK_ROOT_CONF["openvk"]["preferences"]["ton"]["address"]; $address = OPENVK_ROOT_CONF["openvk"]["preferences"]["ton"]["address"];
$text = str_replace("$1", $this->user->identity->getId(), OPENVK_ROOT_CONF["openvk"]["preferences"]["ton"]["hint"]); $text = str_replace("$1", (string) $this->user->identity->getId(), OPENVK_ROOT_CONF["openvk"]["preferences"]["ton"]["hint"]);
$qrCode = explode("base64,", (new QRCode(new QROptions([ $qrCode = explode("base64,", (new QRCode(new QROptions([
"imageTransparent" => false "imageTransparent" => false
])))->render("ton://transfer/$address?text=$text")); ])))->render("ton://transfer/$address?text=$text"));