Commit 1216ab39 authored by Sam Hemelryk's avatar Sam Hemelryk
Browse files

Merge branch 'MDL-16553' of git://github.com/bostelm/moodle

parents e0daa849 db354342
......@@ -110,11 +110,6 @@ class assignment_upload extends assignment_base {
}
if (empty($submission->timemarked)) { /// Nothing to show, so print nothing
if ($this->count_responsefiles($USER->id)) {
echo $OUTPUT->heading(get_string('responsefiles', 'assignment'), 3);
$responsefiles = $this->print_responsefiles($USER->id, true);
echo $OUTPUT->box($responsefiles, 'generalbox boxaligncenter');
}
return;
}
......@@ -126,7 +121,12 @@ class assignment_upload extends assignment_base {
return;
}
if ($grade->grade === null and empty($grade->str_feedback)) { /// Nothing to show yet
if ($grade->grade === null and empty($grade->str_feedback)) { // No grade to show yet
if ($this->count_responsefiles($USER->id)) { // but possibly response files are present
echo $OUTPUT->heading(get_string('responsefiles', 'assignment'), 3);
$responsefiles = $this->print_responsefiles($USER->id, true);
echo $OUTPUT->box($responsefiles, 'generalbox boxaligncenter');
}
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment