mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 09:27:17 +00:00
fix: undefined indexes
This commit is contained in:
@@ -6428,7 +6428,7 @@ References: User ID/Message ID, Mode
|
|||||||
$vtribe = $this->getUserField($vinfo['owner'], "tribe", 0);
|
$vtribe = $this->getUserField($vinfo['owner'], "tribe", 0);
|
||||||
$movingunits = array();
|
$movingunits = array();
|
||||||
$outgoingarray = $this->getMovement(3, $id, 0);
|
$outgoingarray = $this->getMovement(3, $id, 0);
|
||||||
if(!empty($outgoingarray)) {
|
if(!empty($outgoingarray) && count($outgoingarray)) {
|
||||||
foreach($outgoingarray as $out) {
|
foreach($outgoingarray as $out) {
|
||||||
for($i = 1; $i <= 10; $i++) {
|
for($i = 1; $i <= 10; $i++) {
|
||||||
if (!isset($movingunits['u' . (($vtribe - 1) * 10 + $i)])) {
|
if (!isset($movingunits['u' . (($vtribe - 1) * 10 + $i)])) {
|
||||||
@@ -6454,7 +6454,7 @@ References: User ID/Message ID, Mode
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$returningarray = $this->getMovement(4, $id, 1);
|
$returningarray = $this->getMovement(4, $id, 1);
|
||||||
if(!empty($returningarray)) {
|
if(!empty($returningarray) && count($returningarray)) {
|
||||||
foreach($returningarray as $ret) {
|
foreach($returningarray as $ret) {
|
||||||
if($ret['attack_type'] != 1) {
|
if($ret['attack_type'] != 1) {
|
||||||
for($i = 1; $i <= 10; $i++) {
|
for($i = 1; $i <= 10; $i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user