]> git.mjollnir.org Git - moodle.git/commitdiff
Rearrange code ... accidentally placed table->head in the loop
authormartin <martin>
Mon, 9 Sep 2002 10:38:14 +0000 (10:38 +0000)
committermartin <martin>
Mon, 9 Sep 2002 10:38:14 +0000 (10:38 +0000)
course/teachers.php

index 94a3e81a754e34bc934748af9bc0a27e401ee790..c2e8af832e855c557cf6369fec31db0729202e2e 100644 (file)
 
     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 "<FORM ACTION=teachers.php METHOD=post>";
     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);