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:
donal72 2007-01-16 22:52:24 +00:00
parent 7c4b621a20
commit afbedfb8d8

View File

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