Compare commits

...

2 Commits

Author SHA1 Message Date
04d1f57a94 Merge pull request 'Fix (#7)' (#13) from fix-#7 into master
Reviewed-on: https://src.lopar.us/lopar/battles/pulls/13
2020-10-27 20:05:49 +00:00
lopar
64d410157f Fix (#7) 2020-10-27 22:04:38 +02:00

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