Permalink
Browse files

Merge branch 'MDL-16553-19' of git://github.com/bostelm/moodle into M…

…OODLE_19_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Oct 10, 2011
2 parents d2a5725 + b9625c1 commit e1b4fa3029e90af3ef75102bedd6c5a1e1be618f
Showing with 6 additions and 6 deletions.
  1. +6 −6 mod/assignment/type/upload/assignment.class.php
@@ -80,11 +80,6 @@ function view_feedback($submission=NULL) {
}
if (empty($submission->timemarked)) { /// Nothing to show, so print nothing
- if ($this->count_responsefiles($USER->id)) {
- print_heading(get_string('responsefiles', 'assignment', $this->course->teacher), '', 3);
- $responsefiles = $this->print_responsefiles($USER->id, true);
- print_simple_box($responsefiles, 'center');
- }
return;
}
@@ -96,7 +91,12 @@ function view_feedback($submission=NULL) {
return;
}
- if ($grade->grade === null and empty($grade->str_feedback)) { /// Nothing to show yet
+ if ($grade->grade === null and empty($grade->str_feedback)) { // No grades to show yet
+ if ($this->count_responsefiles($USER->id)) { // but possibly response files to show
+ print_heading(get_string('responsefiles', 'assignment', $this->course->teacher), '', 3);
+ $responsefiles = $this->print_responsefiles($USER->id, true);
+ print_simple_box($responsefiles, 'center');
+ }
return;
}

0 comments on commit e1b4fa3

Please sign in to comment.