From de3705ca65f2eebbbfdff63d5db95d74d4a0c1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Meyer?= Date: Mon, 22 Dec 2025 09:19:19 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20nach=20Kommentaren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/structure/components/com_sportsmanager/admin.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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;