diff --git a/functions.php b/functions.php index 03e149a..bf7f51b 100644 --- a/functions.php +++ b/functions.php @@ -80,7 +80,7 @@ if (empty($user['battle']) && ($user['hp'] < @$user['maxhp'])) { $inder = filter_input(INPUT_COOKIE, 'inder'); if (!isset($banks['id'])) { - $banks = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = "?s" AND `owner` = "?s" LIMIT 1', $inder, $u->i()['id'])->fetch_assoc(); + $banks = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = "?s" AND `owner` = "?s" LIMIT 1', $inder, $user['id'])->fetch_assoc(); } function auth_bank($id, $pass, $us)