From: donal72 Date: Tue, 16 Jan 2007 22:52:24 +0000 (+0000) Subject: Mnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=afbedfb8d86012014d21eb3fe37049e60ca3d8c9;p=moodle.git Mnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother to check for remote courses. --- diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index ce08b2655a..3f3bed6625 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; } }