From: skodak Date: Thu, 1 Feb 2007 09:06:48 +0000 (+0000) Subject: fixed obsoleted course->category test for finding if course is site X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5841aa91224d86855239325cbc94e4c19f2746bf;p=moodle.git fixed obsoleted course->category test for finding if course is site --- diff --git a/course/report/log/lib.php b/course/report/log/lib.php index 9bcdb90c0c..380fcfaa21 100644 --- a/course/report/log/lib.php +++ b/course/report/log/lib.php @@ -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 { diff --git a/mod/lesson/index.php b/mod/lesson/index.php index d15550582f..10b9802bde 100644 --- a/mod/lesson/index.php +++ b/mod/lesson/index.php @@ -30,7 +30,7 @@ /// Print the header - if ($course->category) { + if ($course->id != SITEID) { $navigation = "wwwroot/course/view.php?id=$course->id\">$course->shortname ->"; } else { $navigation = '';