Permalink
Browse files

Rearrange code ... accidentally placed table->head in the loop

  • Loading branch information...
1 parent e5c2a9e commit 782e7594ecf593595491050548cf43053b1097d9 martin committed Sep 9, 2002
Showing with 4 additions and 3 deletions.
  1. +4 −3 course/teachers.php
View
@@ -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 "<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);

0 comments on commit 782e759

Please sign in to comment.