From 1ce478e98520d31aa1654b729590bab4664410e5 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Tue, 11 Dec 2018 18:43:24 +0200 Subject: [PATCH] subj --- inf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inf.php b/inf.php index 850f914..2eba6c3 100644 --- a/inf.php +++ b/inf.php @@ -10,7 +10,7 @@ $user = db::c()->query('SELECT `id`,`login`,`married`,`win`,borndate,`align`,`ad WHERE `login` = "?s" OR `id` = "?s"', $login, $login)->fetch_assoc(); $own = db::c()->query('SELECT `align`,`admin` FROM `users` WHERE `id` = "?s"', $uid)->fetch_assoc(); -$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE `owner` = ?i',$user['id']); +$presents = db::c()->query('SELECT `img`,`present` FROM `inventory` WHERE `present`<>"?s" AND `owner` = ?i','',$user['id']); if (empty($user['id'])): ?> @@ -120,7 +120,7 @@ if ($own['admin'] == 1) { if ($user_bank = db::c()->query('SELECT `id`,`cr`,`ekr` FROM `bank` WHERE `id` = ?i', $user['id'])) { echo "

Банковские счета

"; while ($row_user_bank = $user_bank->fetch_assoc()) - echo "№" . $row_user_bank['id'] . ": " . $row_user_bank['cr'] . " кр; " . $row_user_bank['ekr'] . " екр."; + echo "№ " . $row_user_bank['id'] . ": " . $row_user_bank['cr'] . " кр, " . $row_user_bank['ekr'] . " екр."; } //TODO Вынести управляющие элементы во внешнюю админку, подальше от прецедентов. А то были случаи.