Error reporting

This commit is contained in:
Igor Barkov (iwork) 2020-07-03 17:57:40 +03:00
parent 7655a344a3
commit 93d2fbae64

10
inf.php
View File

@ -68,10 +68,12 @@ if (empty($user->id)): ?>
<hr>
<!-- Нижняя часть -->
<?php
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user->id, 5)->fetch_assoc();
if ($effect['time'] && !private_access($uid)) {
die('<h3>Персонаж обезличен!</h3>');
}
try {
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user->id, 5)->fetch_assoc();
if ($effect['time'] && !private_access($uid)) {
die('<h3>Персонаж обезличен!</h3>');
}
} catch (Exception $e) {echo "<span class='error'>Не подтянулась таблица с эффектами. Не работает обезличка!</span>";}
if (!empty($user->realname)) {
echo "Имя: " . $user->realname . "<br>";
}