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);