diff --git a/src/structure/components/com_sportsmanager/admin.php b/src/structure/components/com_sportsmanager/admin.php index 3e599fa..8bf3e9b 100644 --- a/src/structure/components/com_sportsmanager/admin.php +++ b/src/structure/components/com_sportsmanager/admin.php @@ -10041,8 +10041,8 @@ function adminBegegnungenPokalrundeAuslosenForm(): void for ($matchNr = 0; $matchNr < $anzahlmatches; $matchNr++) { $team_heim = $matchNr * 2 ; $team_gast = $team_heim + 1; - $matches[$matchNr]['heim'] = $teams_auslosung[$team_heim]['team_id']; - $matches[$matchNr]['gast'] = $teams_auslosung[$team_gast]['team_id']; + $matches[$matchNr + 1]['heim'] = $teams_auslosung[$team_heim]['team_id']; + $matches[$matchNr + 1]['gast'] = $teams_auslosung[$team_gast]['team_id']; } if ($spielumplatz3) @@ -10071,10 +10071,10 @@ function adminBegegnungenPokalrundeAuslosenForm(): void foreach($matches AS $spiel_nr => $match) { - $matches[$spiel_nr]['rundentitel'] = $matches[$spiel_nr]['rundentitel'] ?? $rundenTitel; + $matches[$spiel_nr]['rundentitel'] = $match['rundentitel'] ?? $rundenTitel; $matches[$spiel_nr]['zeitpunkt'] = $zeitpunkt; - $matches[$spiel_nr]['heimspielort_id'] = $teams[$teams_setzliste[$setzung[0]]]['heimspielort_id']; $team_heim = $match['heim']; + $matches[$spiel_nr]['heimspielort_id'] = $teams[$team_heim]['heimspielort_id']; if ($datum_kw != null && $teams[$team_heim]['heimspiel_wochentag'] !== 0) { $ts = getdate(mondaykw($datum_kw, $datum_jahr, $teams[$team_heim]['heimspiel_wochentag'] - 1)); $matches[$spiel_nr]['zeitpunkt'] = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $ts["year"], $ts["mon"], $ts["mday"], @@ -10117,7 +10117,6 @@ function adminBegegnungenPokalrundeAuslosenForm(): void $teams = []; $setzliste = []; - $setzung = []; $matches = []; $sperren = false; @@ -10205,8 +10204,6 @@ function adminBegegnungenPokalrundeAuslosenForm(): void $sperren = true; } - $matches = []; - if ($rundenNr == 1){ $setzliste = getSetzliste($anzahlrunden); $spiel_nr = 0;