Фикс деления на ноль
This commit is contained in:
parent
7343ba8e25
commit
0c275b9eda
4
shop.php
4
shop.php
@ -16,9 +16,9 @@ if ($user['battle'] != 0) {
|
||||
die();
|
||||
}
|
||||
|
||||
$sellItemId = empty($_GET['sellitem']) ?: $_GET['sellitem'];
|
||||
$sellItemId = filter_input(INPUT_GET,'sellitem');
|
||||
|
||||
if ($sellItemId > 0) {
|
||||
if ($sellItemId && is_numeric($sellItemId)) {
|
||||
$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