Забыл проверки при снятии гравировки.

This commit is contained in:
Igor Barkov [iwork] 2018-12-12 19:29:44 +02:00
parent 919ea2957c
commit f03741dd1b

View File

@ -23,7 +23,7 @@ if (input::post('gravirovka_text') AND input::post('itemId') AND ($user['money']
// Снять гравировку. // Снять гравировку.
if (input::post('gravirovka_remove')) { if (input::post('gravirovka_remove')) {
db::c()->query('UPDATE `inventory` SET `text` = ?n WHERE `id` = ?i AND `owner` = ?i', null, input::post('gravirovka_remove'), $_SESSION['uid']); db::c()->query('UPDATE `inventory` SET `text` = ?n WHERE `dressed` = 0 AND `setsale` = 0 AND `id` = ?i AND `owner` = ?i', null, input::post('gravirovka_remove'), $_SESSION['uid']);
$status = 'Гравировка удалена!'; $status = 'Гравировка удалена!';
} }