]> git.mjollnir.org Git - moodle.git/commitdiff
fixed obsoleted course->category test for finding if course is site
authorskodak <skodak>
Thu, 1 Feb 2007 09:06:48 +0000 (09:06 +0000)
committerskodak <skodak>
Thu, 1 Feb 2007 09:06:48 +0000 (09:06 +0000)
course/report/log/lib.php
mod/lesson/index.php

index 9bcdb90c0c4cc712a032e5c5e77cc129a3aa9db1..380fcfaa219a53933c8facb6d34e1f71b0fc64d3 100644 (file)
@@ -48,7 +48,7 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
     $users = array();
 
     // If looking at a different host, we're interested in all our site users
-    if ($hostid == $CFG->mnet_localhost_id && $course->category) {
+    if ($hostid == $CFG->mnet_localhost_id && $course->id != SITEID) {
         if ($selectedgroup) {   // If using a group, only get users in that group.
             $courseusers = get_group_users($selectedgroup, 'u.lastname ASC', '', 'u.id, u.firstname, u.lastname, u.idnumber');
         } else {
index d15550582fb1f6e9d1a1da3dce4b0c4a3d600855..10b9802bdea6e12bf4d6969c588452138b017e66 100644 (file)
@@ -30,7 +30,7 @@
 
 /// Print the header
 
-    if ($course->category) {
+    if ($course->id != SITEID) {
         $navigation = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->";
     } else {
         $navigation = '';