buy item fix

This commit is contained in:
Igor Barkov [iwork] 2019-01-14 19:19:11 +02:00
parent 5fb31ccc07
commit 378633b720

View File

@ -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())) {