diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index ce08b2655ab..3f3bed6625a 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -50,8 +50,8 @@ class block_course_list extends block_list { } $this->title = get_string('mycourses'); $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 - $this->get_remote_courses(); return $this->content; } }