diff --git a/Templates/dorf3/4.tpl b/Templates/dorf3/4.tpl index fa7b7059..e3ef6a99 100644 --- a/Templates/dorf3/4.tpl +++ b/Templates/dorf3/4.tpl @@ -26,7 +26,7 @@ foreach($varray as $vil){ $hasCel = $database->getVillageField($vid,'celebration'); if ($hasCel <> 0) { $timer++; } - if($vdata['capital'] == 1){$class = 'hl';}else{$class = '';} + if(isset($vdata) && isset($vdata['capital']) && $vdata['capital'] == 1){$class = 'hl';}else{$class = '';} echo '
';
- $senator = $unit['u'.($tribe-1)*10+9];
+ $senator = (isset($unit['u'.((($tribe-1)*10)+9)]) ? $unit['u'.((($tribe-1)*10)+9)] : 0);
$senatorp = '
';
$i=1;
while($i <=$siedler) {
@@ -51,11 +51,11 @@ foreach($varray as $vil){
echo '';
echo '