mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 07:36:07 +00:00
fix: undefined indexes and variables
This commit is contained in:
@@ -3577,8 +3577,15 @@ class MYSQLi_DB implements IDbConnection {
|
||||
foreach($returningarray as $ret) {
|
||||
if($ret['attack_type'] != 1) {
|
||||
for($i = 1; $i <= 10; $i++) {
|
||||
if (!isset($movingunits['u' . (($vtribe - 1) * 10 + $i)])) {
|
||||
$movingunits['u' . (($vtribe - 1) * 10 + $i)] = 0;
|
||||
}
|
||||
$movingunits['u' . (($vtribe - 1) * 10 + $i)] += $ret['t' . $i];
|
||||
}
|
||||
|
||||
if (!isset($movingunits['hero'])) {
|
||||
$movingunits['hero'] = 0;
|
||||
}
|
||||
$movingunits['hero'] += $ret['t11'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user