mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 09:27:17 +00:00
fix: undefined index
This commit is contained in:
@@ -185,7 +185,12 @@ $to = $database->getMInfo($units[$y]['vref']);
|
|||||||
?>
|
?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?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 != ""){?>
|
if($units[$y]['attack_type']!=2 and $units[$y]['attack_type']!=1 and $totalres != ""){?>
|
||||||
<tr><th><?php echo BOUNTY;?></th>
|
<tr><th><?php echo BOUNTY;?></th>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user