From 596204edcacbb1035e01c2a86fc1b4283ca06d9a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Dec 2023 18:10:57 +0800 Subject: [PATCH] 1 --- webapp/controller/MatchController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/controller/MatchController.class.php b/webapp/controller/MatchController.class.php index 337a3b7c..5c5ce49a 100644 --- a/webapp/controller/MatchController.class.php +++ b/webapp/controller/MatchController.class.php @@ -148,8 +148,14 @@ class MatchController extends BaseAuthedController { if (!$found) { $this->matchOk($r, $teamUuid, $val); $this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid)); + array_push($delTeams, $key); } } + }//end foreach $currMatchDb + if (count($delTeams) > 0) { + foreach ($delTeams as $id) { + unset($delTeams[$id]); + } } } }