From: martin Date: Sun, 1 Sep 2002 14:30:39 +0000 (+0000) Subject: DOn't print teachers with no authority X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f144c3054ad950f212162eaad2a37968b404d36c;p=moodle.git DOn't print teachers with no authority --- diff --git a/user/index.php b/user/index.php index f1fc62d815..632d0194be 100644 --- a/user/index.php +++ b/user/index.php @@ -36,7 +36,9 @@ if ( $teachers = get_course_teachers($course->id)) { echo "

".$course->teacher."s

"; foreach ($teachers as $teacher) { - print_user($teacher, $course, $string); + if ($teacher->authority > 0) { // Don't print teachers with no authority + print_user($teacher, $course, $string); + } } }