mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-05 01:47:16 +00:00
fix: undefined index
This commit is contained in:
@@ -4009,8 +4009,14 @@ class Automation {
|
|||||||
// global $$unit;
|
// global $$unit;
|
||||||
// $dataarray = $$unit;
|
// $dataarray = $$unit;
|
||||||
if($prisoners == 0){
|
if($prisoners == 0){
|
||||||
|
if (!isset($array['hero'])) {
|
||||||
|
$array['hero'] = 0;
|
||||||
|
}
|
||||||
$upkeep += $array['hero'] * 6;
|
$upkeep += $array['hero'] * 6;
|
||||||
}else{
|
}else{
|
||||||
|
if (!isset($array['t11'])) {
|
||||||
|
$array['t11'] = 0;
|
||||||
|
}
|
||||||
$upkeep += $array['t11'] * 6;
|
$upkeep += $array['t11'] * 6;
|
||||||
}
|
}
|
||||||
$who=$database->getVillageField($vid,"owner");
|
$who=$database->getVillageField($vid,"owner");
|
||||||
|
|||||||
Reference in New Issue
Block a user