Ремонт почты

This commit is contained in:
lopar 2018-06-24 18:40:00 +03:00
parent 54dd762aa1
commit 2548e7c09c
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ if ($_SESSION['receiverName']) {
db::c()->query('INSERT INTO `telegraph` (`receiver`,`text`) VALUES (?i,"?s")', $receiverId, $telegraphText);
$statusMessage = 'Сообщение отправлено.';
} else $statusMessage = 'Сообщение было оставлено пустым!';
}
$statusMessage = 'Телеграф сломался!';
} else $statusMessage = 'Телеграф сломался!';
if ($submit == 'sendItem' && $sendItemId && $user['money'] >= 1) {
$res = db::c()->query('SELECT `id`,`name` FROM `inventory` WHERE `owner` = ?i AND `id` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `present` = "?s" AND `artefact` = 0', $_SESSION['uid'], $sendItemId, null)->fetch_assoc();