mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: undefined indexes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$ty=(isset($_GET['ty']))? $_GET['ty']:"";
|
||||
if($_REQUEST["cancel"] == "1") {
|
||||
if(isset($_REQUEST["cancel"]) && $_REQUEST["cancel"] == "1") {
|
||||
if($session->access != BANNED){
|
||||
$database->delDemolition($village->wid);
|
||||
header("Location: build.php?gid=15&ty=$ty&cancel=0&demolish=0");
|
||||
|
||||
@@ -269,7 +269,7 @@ if($armoury == 0 && ($mainbuilding <= 2 || $academy == 0)) {
|
||||
if($cropland <= 4) {
|
||||
include("soon/grainmill.tpl");
|
||||
}
|
||||
if($marketplace == 0 && ($mainbuilding <= 2 || $granary <= 0 || $warehouse <= 0)) {
|
||||
if(isset($marketplace) && $marketplace == 0 && ($mainbuilding <= 2 || $granary <= 0 || $warehouse <= 0)) {
|
||||
include("soon/marketplace.tpl");
|
||||
}
|
||||
if($residence == 0 && $mainbuilding <= 4) {
|
||||
|
||||
Reference in New Issue
Block a user