From d1b878a5a476ebfb8e2d4367a4f1f75f6a096c3d Mon Sep 17 00:00:00 2001 From: celestora Date: Sat, 20 Aug 2022 18:03:39 +0300 Subject: [PATCH] Fix type error in settings --- Web/Presenters/UserPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/UserPresenter.php b/Web/Presenters/UserPresenter.php index a86cf8ae..6871b90e 100644 --- a/Web/Presenters/UserPresenter.php +++ b/Web/Presenters/UserPresenter.php @@ -460,7 +460,7 @@ final class UserPresenter extends OpenVKPresenter if($this->template->mode == "finance") { $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([ "imageTransparent" => false ])))->render("ton://transfer/$address?text=$text"));