Исправлено: Fatal error: Uncaught Error: Using $this when not in object context
This commit is contained in:
parent
7aab82b70b
commit
162fdd41e5
2
inf.php
2
inf.php
@ -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>');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user