mirror of
https://github.com/moodle/moodle.git
synced 2025-03-03 15:29:08 +01:00
Merge branch 'MDL-42548' of git://github.com/timhunt/moodle
This commit is contained in:
commit
5e70fc1f9c
@ -187,10 +187,7 @@ $grade = quiz_rescale_grade($attempt->sumgrades, $quiz, false);
|
||||
if ($options->marks >= question_display_options::MARK_AND_MAX && quiz_has_grades($quiz)) {
|
||||
|
||||
if ($attempt->state != quiz_attempt::FINISHED) {
|
||||
$summarydata['grade'] = array(
|
||||
'title' => get_string('grade', 'quiz'),
|
||||
'content' => get_string('attemptstillinprogress', 'quiz'),
|
||||
);
|
||||
// Cannot display grade.
|
||||
|
||||
} else if (is_null($grade)) {
|
||||
$summarydata['grade'] = array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user