mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-13 23:01:02 +00:00
fix: undefined indexes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$units = $database->getMovement(3,$village->wid,0);
|
||||
$total_for = count($units);
|
||||
$timer = 0;
|
||||
|
||||
for($y=0;$y<$total_for;$y++){
|
||||
$timer += 1;
|
||||
|
||||
@@ -72,7 +72,7 @@ $ckey= $generator->generateRandStr(6);
|
||||
(!empty($process['t10']) ? $process['t10'] : 0) +
|
||||
(!empty($process['t11']) ? $process['t11'] : 0);
|
||||
}
|
||||
if ($scout==1 && $totalunits==0) {
|
||||
if (isset($scout) && $scout==1 && isset($totalunits) && $totalunits==0) {
|
||||
if ($process['c'] != 2){
|
||||
$process['c'] = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user