mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: undefined index
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user