fix: undefined index

This commit is contained in:
Martin Ambrus
2017-11-19 20:41:35 +01:00
parent 7fa58f42a1
commit 37c53a30f5
+6
View File
@@ -4009,8 +4009,14 @@ class Automation {
// global $$unit;
// $dataarray = $$unit;
if($prisoners == 0){
if (!isset($array['hero'])) {
$array['hero'] = 0;
}
$upkeep += $array['hero'] * 6;
}else{
if (!isset($array['t11'])) {
$array['t11'] = 0;
}
$upkeep += $array['t11'] * 6;
}
$who=$database->getVillageField($vid,"owner");