DOn't print teachers with no authority
This commit is contained in:
+3
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user