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 "