Фикс деления на ноль

This commit is contained in:
lopar 2018-06-23 19:57:28 +03:00
parent 4da8580e08
commit 7343ba8e25

View File

@ -18,7 +18,7 @@ if ($user['battle'] != 0) {
$sellItemId = empty($_GET['sellitem']) ?: $_GET['sellitem'];
if ($sellItemId) {
if ($sellItemId > 0) {
$dress = db::c()->query('SELECT `id`, `name`, `cost`, `type`, `duration`, `maxdur`, `goden`, `dategoden`, `koll` FROM `inventory` WHERE `dressed` = 0 AND `id` = ?i AND `owner` = ?i', $sellItemId, $user['id'])->fetch_assoc();
$price = $dress['cost'] * 1;
$kols = '';