]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed up My Moodle
authormoodler <moodler>
Thu, 7 Aug 2003 16:41:33 +0000 (16:41 +0000)
committermoodler <moodler>
Thu, 7 Aug 2003 16:41:33 +0000 (16:41 +0000)
course/lib.php

index adae5f4505db80ba1ea823256aa53ce3193d3241..6439c5548cbb25ef3b89b8f71971eb356b194768 100644 (file)
@@ -1097,8 +1097,16 @@ function print_my_moodle() {
             print_course($course, "100%");
             echo "<br />\n";
         }
+        echo "<p align=\"right\"><a href=\"$CFG->wwwroot/course/\">".get_string("fulllistofcourses")."</a>...</p>";
+    } else {
+        if (count_records("course_categories") > 1) {
+            print_simple_box_start("center", "100%");
+            print_whole_category_list();
+            print_simple_box_end();
+        } else {
+            print_courses(0, "100%");
+        }
     }
-    echo "<p align=\"right\"><a href=\"$CFG->wwwroot/course/\">".get_string("fulllistofcourses")."</a>...</p>";
 }