mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Mnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother to check for remote courses.
This commit is contained in:
parent
7c4b621a20
commit
afbedfb8d8
@ -50,8 +50,8 @@ class block_course_list extends block_list {
|
||||
}
|
||||
$this->title = get_string('mycourses');
|
||||
$this->content->footer = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
|
||||
$this->get_remote_courses();
|
||||
if ($this->content->items) { // make sure we don't return an empty list
|
||||
$this->get_remote_courses();
|
||||
return $this->content;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user