Конфиги вынесены в 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);
|
$presentsModel = new PresentsModel($userInfo->id);
|
||||||
$presentsList = $presentsModel->getAllPresents();
|
$presentsList = $presentsModel->getAllPresents();
|
||||||
$userInfo->watcher_id = $userInfo->id ?? null;
|
$userInfo->watcher_id = $userInfo->id ?? null;
|
||||||
|
Template::header('Информация о'.$userInfo->login);
|
||||||
|
|
||||||
if (empty($userInfo->id)): ?>
|
if (empty($userInfo->id)): ?>
|
||||||
Template::header('Ошибка');
|
|
||||||
Ошибка: персонаж <em><?= $login ?></em> не найден...
|
Ошибка: персонаж <em><?= $login ?></em> не найден...
|
||||||
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
|
<p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
|
||||||
<?php exit(); endif; ?>
|
<?php exit(); endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
Template::header('Информация о'.$userInfo->login);
|
|
||||||
try {
|
try {
|
||||||
$userInfo->showUserInfo();
|
$userInfo->showUserInfo();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user