From: martin Date: Mon, 9 Sep 2002 10:38:14 +0000 (+0000) Subject: Rearrange code ... accidentally placed table->head in the loop X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=782e7594ecf593595491050548cf43053b1097d9;p=moodle.git Rearrange code ... accidentally placed table->head in the loop --- diff --git a/course/teachers.php b/course/teachers.php index 94a3e81a75..c2e8af832e 100644 --- a/course/teachers.php +++ b/course/teachers.php @@ -57,11 +57,12 @@ print_heading($course->teachers); + $table->head = array ("", get_string("name"), get_string("order"), get_string("role")); + $table->align = array ("RIGHT", "LEFT", "CENTER", "CENTER"); + $table->size = array ("35", "", "", ""); + echo "
"; foreach ($teachers as $teacher) { - $table->head = array ("", get_string("name"), get_string("order"), get_string("role")); - $table->align = array ("RIGHT", "LEFT", "CENTER", "CENTER"); - $table->size = array ("35", "", "", ""); $picture = print_user_picture($teacher->id, $course->id, $teacher->picture, false, true);