Error reporting
This commit is contained in:
parent
7655a344a3
commit
93d2fbae64
10
inf.php
10
inf.php
@ -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>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user