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]); + } } } }