Merge pull request 'Fix (#7)' (#13) from fix-#7 into master

Reviewed-on: https://src.lopar.us/lopar/battles/pulls/13
This commit is contained in:
Ivor Barhansky 2020-10-27 20:05:49 +00:00
commit 04d1f57a94

View File

@ -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('Ошибка: персонаж <em>%s</em> не найден...<p><a style="color: #99f;" href="javascript:window.history.go(-1);">←назад</a></p>', $login);