From: moodler Date: Sat, 9 Aug 2003 10:11:04 +0000 (+0000) Subject: Minor formatting fixes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c6cbe2e30d15f716c54728a8745c5d160b53cb6f;p=moodle.git Minor formatting fixes --- diff --git a/mod/chat/index.php b/mod/chat/index.php index f411248b96..ec8867304c 100644 --- a/mod/chat/index.php +++ b/mod/chat/index.php @@ -23,7 +23,7 @@ /// Print the header if ($course->category) { - $navigation = "id\">$course->shortname ->"; + $navigation = "id\">$course->shortname ->"; } print_header("$course->shortname: $strchats", "$course->fullname", "$navigation $strchats"); @@ -44,20 +44,24 @@ if ($course->format == "weeks") { $table->head = array ($strweek, $strname); - $table->align = array ("CENTER", "LEFT"); + $table->align = array ("center", "left"); } else if ($course->format == "topics") { $table->head = array ($strtopic, $strname); - $table->align = array ("CENTER", "LEFT", "LEFT", "LEFT"); + $table->align = array ("center", "left", "left", "left"); } else { $table->head = array ($strname); - $table->align = array ("LEFT", "LEFT", "LEFT"); + $table->align = array ("left", "left", "left"); } foreach ($chats as $chat) { - $link = "coursemodule\">$chat->name"; + $link = "coursemodule\">$chat->name"; if ($course->format == "weeks" or $course->format == "topics") { - $table->data[] = array ($chat->section, $link); + if ($chat->section) { + $table->data[] = array ($chat->section, $link); + } else { + $table->data[] = array ("", $link); + } } else { $table->data[] = array ($link); }