From 2e8957bb7ef4f68bcdbb30fafbc2a140c5b1db74 Mon Sep 17 00:00:00 2001 From: Yamil Readigos Hurtado <36506826+yamilrh@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:41:57 -0400 Subject: [PATCH] fixed compatibility with 2moons 2.x.x NOTICE: "Undefined index: user" File: opbe\implementations\2Moons\1_7_2_injectionMode\calculateAttack.php | Line: 229 --- implementations/2Moons/1_7_2_injectionMode/calculateAttack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementations/2Moons/1_7_2_injectionMode/calculateAttack.php b/implementations/2Moons/1_7_2_injectionMode/calculateAttack.php index b38200a..afc54d7 100644 --- a/implementations/2Moons/1_7_2_injectionMode/calculateAttack.php +++ b/implementations/2Moons/1_7_2_injectionMode/calculateAttack.php @@ -226,7 +226,7 @@ function updatePlayers(PlayerGroup $playerGroup, &$players) $amountArray = array(); foreach ($players as $idFleet => $info) { - $players[$idFleet]['techs'] = getTechsFromArrayForReport($info['user']); + $players[$idFleet]['techs'] = getTechsFromArrayForReport($info['player']); foreach ($info['unit'] as $idShipType => $amount) { if ($playerGroup->existPlayer($info['player']['id']))