fix: undefined indexes

This commit is contained in:
Martin Ambrus
2017-11-01 21:35:24 +01:00
parent 396250f393
commit 041726fbd2
6 changed files with 22 additions and 15 deletions
+1
View File
@@ -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;
+1 -1
View File
@@ -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;
}