Фикс деления на ноль
This commit is contained in:
parent
4da8580e08
commit
7343ba8e25
2
shop.php
2
shop.php
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user