From: moodler Date: Fri, 15 Sep 2006 13:46:11 +0000 (+0000) Subject: Fixed some notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2939bfe44451565c3ad83d585afabc7dc4cb6709;p=moodle.git Fixed some notices --- diff --git a/course/lib.php b/course/lib.php index 95bdc7cfa0..4ddd688f62 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1527,14 +1527,12 @@ function print_course($course, $width="100%") { if ($teachers = get_course_teachers($course->id)) { echo "\n"; foreach ($teachers as $teacher) { - if ($teacher->authority > 0) { - if (!$teacher->role) { - $teacher->role = $course->teacher; - } - $fullname = fullname($teacher, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id))); // is the USER a teacher of that course - echo $teacher->role.': '.$fullname.'
'; + if (empty($teacher->role)) { + $teacher->role = $course->teacher; } + $fullname = fullname($teacher, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id))); // is the USER a teacher of that course + echo $teacher->role.': '.$fullname.'
'; } echo "
\n"; }