]> git.mjollnir.org Git - moodle.git/commitdiff
Mnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother...
authordonal72 <donal72>
Tue, 16 Jan 2007 22:52:24 +0000 (22:52 +0000)
committerdonal72 <donal72>
Tue, 16 Jan 2007 22:52:24 +0000 (22:52 +0000)
blocks/course_list/block_course_list.php

index ce08b2655ab438cae6fec91eba595a1d0a4035ad..3f3bed6625ac3a2257f9180eeede8f8a43b0b9dc 100644 (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;
                 }
             }