From afbedfb8d86012014d21eb3fe37049e60ca3d8c9 Mon Sep 17 00:00:00 2001 From: donal72 Date: Tue, 16 Jan 2007 22:52:24 +0000 Subject: [PATCH] Mnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother to check for remote courses. --- blocks/course_list/block_course_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5