diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index cf3fac55a04..b79ba36ef4e 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -53,10 +53,10 @@ class block_course_list extends block_list { if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) { $this->content->footer = "wwwroot/course/index.php\">".get_string("fulllistofcourses")." ..."; } - $this->get_remote_courses(); - if ($this->content->items) { // make sure we don't return an empty list - return $this->content; - } + } + $this->get_remote_courses(); + if ($this->content->items) { // make sure we don't return an empty list + return $this->content; } }