From a86e5a6cd7ec90c39ef2d6abb56131395d57ab63 Mon Sep 17 00:00:00 2001 From: lopar Date: Sat, 3 Mar 2018 22:54:01 +0200 Subject: [PATCH] bad class bug --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)