From 64d410157f1a6c3174e4b359ba53bbca0f68d1cc Mon Sep 17 00:00:00 2001 From: lopar Date: Tue, 27 Oct 2020 22:04:38 +0200 Subject: [PATCH] Fix (#7) --- inf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inf.php b/inf.php index 0655245..4fceade 100644 --- a/inf.php +++ b/inf.php @@ -5,7 +5,7 @@ $login = urldecode($_SERVER['QUERY_STRING']) ?? ''; $userInfo = new UserInfo($login); $presentsModel = new PresentsModel($userInfo->id); $presentsList = $presentsModel->getAllPresents(); -$userInfo->watcher_id = $userInfo->id ?? null; +$userInfo->watcher_id = $_SESSION['uid'] ?? null; Template::header('Информация о ' . $userInfo->login); if (!$userInfo->id) { echo sprintf('Ошибка: персонаж %s не найден...

←назад

', $login); -- 2.45.2