Permalink
Browse files

DOn't print teachers with no authority

  • Loading branch information...
1 parent 44e2d2b commit f144c3054ad950f212162eaad2a37968b404d36c martin committed Sep 1, 2002
Showing with 3 additions and 1 deletion.
  1. +3 −1 user/index.php
View
@@ -36,7 +36,9 @@
if ( $teachers = get_course_teachers($course->id)) {
echo "<H2 align=center>".$course->teacher."s</H2>";
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);
+ }
}
}

0 comments on commit f144c30

Please sign in to comment.