Забыл проверки при снятии гравировки.
This commit is contained in:
parent
919ea2957c
commit
f03741dd1b
@ -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 = 'Гравировка удалена!';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user