Слишком строгая типизация?
This commit is contained in:
parent
702501dbcc
commit
522d1f6485
4
main.php
4
main.php
@ -331,7 +331,7 @@ function dressitem($id)
|
|||||||
$error = ERROR_TOO_MANY_ITEMS_IN_SLOTS;
|
$error = ERROR_TOO_MANY_ITEMS_IN_SLOTS;
|
||||||
db::c()->query('UPDATE inventory SET dressed_slot = 0 WHERE dressed_slot BETWEEN 1 AND 12 AND owner_id = ?i', $_SESSION['uid']);
|
db::c()->query('UPDATE inventory SET dressed_slot = 0 WHERE dressed_slot BETWEEN 1 AND 12 AND owner_id = ?i', $_SESSION['uid']);
|
||||||
}
|
}
|
||||||
} elseif ($selectedItem->item_type === RING) {
|
} elseif ($selectedItem->item_type == RING) {
|
||||||
// работаем с кольцами
|
// работаем с кольцами
|
||||||
if (!$itemInSlotQuantity) {
|
if (!$itemInSlotQuantity) {
|
||||||
// просто одеваем предмет в слот 9
|
// просто одеваем предмет в слот 9
|
||||||
@ -364,7 +364,7 @@ function dressitem($id)
|
|||||||
if (isset($error)) {
|
if (isset($error)) {
|
||||||
return $error;
|
return $error;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user