Исправлено: Fatal error: Uncaught Error: Using $this when not in object context

This commit is contained in:
lopar 2020-07-05 19:46:25 +03:00
parent 7aab82b70b
commit 162fdd41e5

View File

@ -46,7 +46,7 @@ if (empty($user->id)): ?>
<body> <body>
<?php <?php
try { try {
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $this->id, 5)->fetch_assoc(); $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)) { if ($effect['time'] && !private_access($uid)) {
die('<h3>Персонаж обезличен!</h3>'); die('<h3>Персонаж обезличен!</h3>');
} }