Skip to content

Commit

Permalink
Improve display of empty values in quiz attempt header (e.g., feedbac…
Browse files Browse the repository at this point in the history
…k, idnumber, ...)
  • Loading branch information
ngandrass committed Oct 29, 2024
1 parent a21dae3 commit 3551981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public function generate(int $attemptid, array $sections): string {
$feedback = $attemptobj->get_overall_feedback($grade);
$quizheaderdata['feedback'] = [
'title' => get_string('feedback', 'quiz'),
'content' => $feedback,
'content' => $feedback ?: '<i>'.get_string('none').'</i>',
];
}

Expand Down

0 comments on commit 3551981

Please sign in to comment.