Skip to content

Commit

Permalink
Merge branch 'MDL-16553-19' of git://github.com/bostelm/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_19_STABLE
  • Loading branch information
Sam Hemelryk committed Oct 10, 2011
2 parents d2a5725 + b9625c1 commit e1b4fa3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mod/assignment/type/upload/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit e1b4fa3

Please sign in to comment.