From b6cf8acb70827289d7a0364d7cbc016184ba3040 Mon Sep 17 00:00:00 2001 From: Turtle <104490184+CodingTurtle2@users.noreply.github.com> Date: Mon, 5 Jan 2026 10:11:59 +0100 Subject: [PATCH] g5.1 --- prof/auswertung.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prof/auswertung.html b/prof/auswertung.html index 2919fbd..0a3572a 100644 --- a/prof/auswertung.html +++ b/prof/auswertung.html @@ -156,7 +156,7 @@ async function loadStats() { bottomLabel.innerHTML = " "; udiv.appendChild(bottomLabel); - let studenten = gesamtAuswertung[3].reduce((acc, val) => acc + val, 0) / gesamtAuswertung[3].length; + let studenten = gesamtAuswertung[3].length == 0 ? 0 : gesamtAuswertung[3].reduce((acc, val) => acc + val, 0) / gesamtAuswertung[3].length; gdiv.innerHTML = `