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:
@@ -84,6 +84,11 @@ include("next.tpl");
|
||||
$max1 += $bid36[$village->resarray['f'.$i]]['attri']*TRAPPER_CAPACITY;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($train_amt)) {
|
||||
$train_amt = 0;
|
||||
}
|
||||
|
||||
if($max > $max1 - ($village->unitarray['u99'] + $train_amt)){
|
||||
$max = $max1 - ($village->unitarray['u99'] + $train_amt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user