From 7343ba8e256d19a5a96c5d7de96c27e81d156532 Mon Sep 17 00:00:00 2001 From: lopar Date: Sat, 23 Jun 2018 19:57:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0=20=D0=BD=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop.php b/shop.php index cbc1d2d..abc467b 100644 --- a/shop.php +++ b/shop.php @@ -18,7 +18,7 @@ if ($user['battle'] != 0) { $sellItemId = empty($_GET['sellitem']) ?: $_GET['sellitem']; -if ($sellItemId) { +if ($sellItemId > 0) { $dress = db::c()->query('SELECT `id`, `name`, `cost`, `type`, `duration`, `maxdur`, `goden`, `dategoden`, `koll` FROM `inventory` WHERE `dressed` = 0 AND `id` = ?i AND `owner` = ?i', $sellItemId, $user['id'])->fetch_assoc(); $price = $dress['cost'] * 1; $kols = '';