Конфиги вынесены в config.php; Cannot use object of type User as array.
This commit is contained in:
parent
6ad9a04a25
commit
ca7b249bb2
4
inf.php
4
inf.php
@ -7,15 +7,15 @@ $userInfo = new UserInfo($login);
|
||||
$presentsModel = new PresentsModel($userInfo->id);
|
||||
$presentsList = $presentsModel->getAllPresents();
|
||||
$userInfo->watcher_id = $userInfo->id ?? null;
|
||||
Template::header('Информация о'.$userInfo->login);
|
||||
|
||||
if (empty($userInfo->id)): ?>
|
||||
Template::header('Ошибка');
|
||||
Ошибка: персонаж <em><?= $login ?></em> не найден...
|
||||
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
|
||||
<?php exit(); endif; ?>
|
||||
|
||||
<?php
|
||||
Template::header('Информация о'.$userInfo->login);
|
||||
|
||||
try {
|
||||
$userInfo->showUserInfo();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user