diff --git a/inf.php b/inf.php index 2d5c80a..f1ad1f4 100644 --- a/inf.php +++ b/inf.php @@ -46,7 +46,7 @@ if (empty($user->id)): ?>
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('