From 378633b720e030d974b0123d5a3f5e2e6cf3c5c6 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Mon, 14 Jan 2019 19:19:11 +0200 Subject: [PATCH] buy item fix --- shop.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shop.php b/shop.php index 60c1ea2..8eb8bac 100644 --- a/shop.php +++ b/shop.php @@ -46,9 +46,7 @@ if ($sellItemId && is_numeric($sellItemId)) { if (!empty($_GET['buy'])) { - $count_ok = 1; - - $dress = db::c()->query('SELECT * FROM `shop` WHERE `id`=?i', $set)->fetch_assoc(); + $dress = db::c()->query('SELECT * FROM `shop` WHERE `id`=?i', $_GET['buy'])->fetch_assoc(); if (($dress['massa'] + $itemWeight['m']) > (get_meshok())) {