Permalink
Browse files

Make sure that the Site never shows up in My Courses

  • Loading branch information...
moodler
moodler committed Aug 26, 2003
1 parent 7cdcb42 commit c81696e599737520b706df83a55184d5703de015
Showing with 6 additions and 0 deletions.
  1. +6 −0 course/lib.php
View
@@ -1004,6 +1004,9 @@ function print_courses_sideblock($category=0, $width="100%") {
if (isset($USER->id) and !isadmin()) { // Just print My Courses
if ($courses = get_my_courses($USER->id)) {
foreach ($courses as $course) {
if (!$course->category) {
continue;
}
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
$moddata[]="<a $linkcss title=\"$course->shortname\" ".
"href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
@@ -1156,6 +1159,9 @@ function print_my_moodle() {
if ($courses = get_my_courses($USER->id)) {
foreach ($courses as $course) {
if (!$course->category) {
continue;
}
print_course($course, "100%");
echo "<br />\n";
}

0 comments on commit c81696e

Please sign in to comment.