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

This commit is contained in:
Igor Barkov [iwork] 2018-12-12 19:29:44 +02:00
parent 919ea2957c
commit f03741dd1b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if (input::post('gravirovka_text') AND input::post('itemId') AND ($user['money']
// Снять гравировку.
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 = 'Гравировка удалена!';
}