#49: Удаление здания комиссионки.

This commit is contained in:
Igor Barkov (iwork)
2022-01-21 18:17:56 +02:00
parent baf127231e
commit 415d198351
13 changed files with 28 additions and 179 deletions
+7 -3
View File
@@ -10,11 +10,15 @@ use Battles\User;
require_once 'functions.php';
Shop::$current = new Shop(Shop::GENERAL_SHOP);
if (!empty($_GET['otdel'])) {
if ($_GET['otdel'] !== 'sale') {
Shop::$current->categoryType = $_GET['otdel'];
} else {
if ($_GET['otdel'] === 'sale') {
Shop::$current->categoryType = Shop::CATEGORY_SALE_ITEMS;
}
elseif ($_GET['otdel'] === 'market') {
Shop::$current->categoryType = Shop::BARTER_SHOP;
}
else {
Shop::$current->categoryType = $_GET['otdel'];
}
}
if (!empty($_POST['sellshop'])) {