diff --git a/main.php b/main.php index 46ee112..db11cd3 100644 --- a/main.php +++ b/main.php @@ -331,7 +331,7 @@ function dressitem($id) $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']); } - } elseif ($selectedItem->item_type === RING) { + } elseif ($selectedItem->item_type == RING) { // работаем с кольцами if (!$itemInSlotQuantity) { // просто одеваем предмет в слот 9 @@ -364,7 +364,7 @@ function dressitem($id) if (isset($error)) { return $error; } else { - return true; + return null; } }