diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index af3b64b8..27b9ec51 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -136,7 +136,7 @@ class BattleController extends BaseAuthedController { } $data = json_decode(file_get_contents('php://input'), true); error_log(json_encode($data)); - foreach ($data as $teamData){ + foreach ($data['team_list'] as $teamData){ $this->_handleTeamReport($teamData); }