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:
@@ -185,7 +185,12 @@ $to = $database->getMInfo($units[$y]['vref']);
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
$totalres = $res['wood']+$res['clay']+$res['iron']+$res['crop'];
|
||||
if (isset($res)) {
|
||||
$totalres = $res['wood'] + $res['clay'] + $res['iron'] + $res['crop'];
|
||||
} else {
|
||||
$totalres = 0;
|
||||
}
|
||||
|
||||
if($units[$y]['attack_type']!=2 and $units[$y]['attack_type']!=1 and $totalres != ""){?>
|
||||
<tr><th><?php echo BOUNTY;?></th>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user