Skip to content

Commit

Permalink
Merge pull request #20 from bfh/nothingfound
Browse files Browse the repository at this point in the history
Show the same message as the others quiz reports.
  • Loading branch information
lucaboesch authored Nov 11, 2023
2 parents 8fbcf90 + 10c9f01 commit 3914238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function display($quiz, $cm, $course) {

// What sort of page to display?
if (!$hasquestions) {
echo $OUTPUT->notification(get_string('noattemptstoshow', 'quiz'));
echo $OUTPUT->notification(get_string('nothingfound', 'quiz_grading'));
} else {
$this->display_archive();
}
Expand All @@ -139,7 +139,7 @@ protected function display_archive() {
global $OUTPUT;
$studentattempts = $this->quizreportgetstudentandattempts($this->quizobj);
if (count($studentattempts) === 0) {
echo $OUTPUT->notification(get_string('noattemptstoshow', 'quiz'));
echo $OUTPUT->notification(get_string('nothingfound', 'quiz_grading'));
}
foreach ($studentattempts as $studentattempt) {
echo $this->quiz_report_get_student_attempt($studentattempt['attemptid'], $studentattempt['userid']);
Expand Down

0 comments on commit 3914238

Please sign in to comment.