Исправлено: Fatal error: Uncaught Error: Using $this when not in object context
This commit is contained in:
2
inf.php
2
inf.php
@@ -46,7 +46,7 @@ if (empty($user->id)): ?>
|
||||
<body>
|
||||
<?php
|
||||
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)) {
|
||||
die('<h3>Персонаж обезличен!</h3>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user