From 919ea2957c43e76cd4d3f806b504780079a1a67e Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Wed, 12 Dec 2018 19:22:26 +0200 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=B4=D0=B5=D1=8E=D1=81=D1=8C=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=87=D0=B0=D1=8F=20=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0.=20=D0=A0=D0=B0?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D1=87=D1=82=D0=B0=D0=BB=D1=81=D1=8F=202.=20:?= =?UTF-8?q?(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repair.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repair.php b/repair.php index a52a26f..c8d4b84 100644 --- a/repair.php +++ b/repair.php @@ -15,7 +15,7 @@ if ($user['battle'] != 0) { // Гравировка 30 кред. Максимум 32 символа. if (input::post('gravirovka_text') AND input::post('itemId') AND ($user['money'] >= 30)) { if (33 > iconv_strlen(input::post('gravirovka_text'))) { - db::c()->query('UPDATE `inventory` SET `text` = "?s" WHERE `dressed` = 0 AND `setsale` = 0 AND `owner` = ?i AND `id` = ?i', input::post('count'), $_SESSION['uid'], input::post('set')); + db::c()->query('UPDATE `inventory` SET `text` = "?s" WHERE `dressed` = 0 AND `setsale` = 0 AND `owner` = ?i AND `id` = ?i', input::post('gravirovka_text'), $_SESSION['uid'], input::post('itemId')); db::c()->query('UPDATE `users` SET `money` = `money` - 30 WHERE `id` = ?i', $_SESSION['uid']); $status = 'Гравировка добавлена!'; } else $status = 'Превышен лимит в 32 символа!';