diff --git a/blocks/completionstatus/block_completionstatus.php b/blocks/completionstatus/block_completionstatus.php index 59688f443d1..c27067b1c70 100644 --- a/blocks/completionstatus/block_completionstatus.php +++ b/blocks/completionstatus/block_completionstatus.php @@ -234,7 +234,6 @@ class block_completionstatus extends block_base { // Display link to detailed view. $details = new moodle_url('/blocks/completionstatus/details.php', array('course' => $course->id)); - $this->content->footer = html_writer::empty_tag('br'); $this->content->footer = html_writer::link($details, get_string('moredetails', 'completion')); } else { // If user is not enrolled, show error. @@ -243,6 +242,9 @@ class block_completionstatus extends block_base { if (has_capability('report/completion:view', $context)) { $report = new moodle_url('/report/completion/index.php', array('course' => $course->id)); + if (empty($this->content->footer)) { + $this->content->footer = ''; + } $this->content->footer .= html_writer::empty_tag('br'); $this->content->footer .= html_writer::link($report, get_string('viewcoursereport', 'completion')); }