From 6a2e8cbb57d82d07672fe11873244fe36ae3c8fc Mon Sep 17 00:00:00 2001 From: torsten Date: Sat, 3 Oct 2026 16:46:53 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Behebe=20leere=20Runden=C3=BCbersicht=20?= =?UTF-8?q?durch=20Laden=20aller=20Runden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (gemini/gemini-2.5-pro) --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 310a2b9..1c1b7b9 100644 --- a/public/index.php +++ b/public/index.php @@ -20,8 +20,8 @@ if ($uri === '/' || $uri === '/index.php') { echo "

Datenbank verbunden! Aktuell $userCount User im System.

"; echo "

Rundenübersicht

"; - // Annahme: Saison 1 ist die aktuelle. Dies könnte später dynamisch gemacht werden. - $rounds = Round::getBySeason(1); + // ToDo: Saison-Logik implementieren. Aktuell werden alle Runden angezeigt. + $rounds = $db->query("SELECT * FROM rounds ORDER BY id ASC")->fetchAll(PDO::FETCH_ASSOC); if ($rounds) { echo "