diff --git a/inf.php b/inf.php index c650949..a39cc13 100644 --- a/inf.php +++ b/inf.php @@ -68,10 +68,12 @@ if (empty($user->id)): ?>
query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user->id, 5)->fetch_assoc(); -if ($effect['time'] && !private_access($uid)) { - die('

Персонаж обезличен!

'); -} +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('

Персонаж обезличен!

'); + } +} catch (Exception $e) {echo "Не подтянулась таблица с эффектами. Не работает обезличка!";} if (!empty($user->realname)) { echo "Имя: " . $user->realname . "
"; }