We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ceb2b commit 0fe5a99Copy full SHA for 0fe5a99
1 file changed
lib/WebTaskSubmitter/View.pm
@@ -249,7 +249,8 @@ sub tasklist_page() {
249
$out .= "</tr>\n";
250
}
251
252
- my $pp = $student_points/$max_points;
+ my $pp = 0;
253
+ $pp = $student_points/$max_points if $max_points > 0;
254
255
$out .= sprintf "<tr><th colspan='2'>$texts->{tasklist_total_points}</th><th>%d / %d (%.1f%%)</th><th colspan='2'>%s</th></tr>\n",
256
$student_points, $max_points, $pp * 100,
0 commit comments