diff --git a/bank.php b/bank.php index a0b775d..4aea57d 100644 --- a/bank.php +++ b/bank.php @@ -26,6 +26,12 @@ function inschet($userid) echo ""; } +$bank = db::c()->query('SELECT `id`, `cr`, `ekr` FROM `bank` WHERE `id` = ?i', $_SESSION['bankid'])->fetch_assoc(); +if (!$bank['id']) { + db::c()->query('INSERT INTO `bank` (`id`) VALUES (?i)', $_SESSION['bankid']); + $_SESSION['bankid'] = null; +} + ?> @@ -36,7 +42,7 @@ function inschet($userid)