--- loncom/interface/lonhtmlcommon.pm 2005/10/13 18:31:06 1.113
+++ loncom/interface/lonhtmlcommon.pm 2005/10/27 23:13:49 1.116
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.113 2005/10/13 18:31:06 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.116 2005/10/27 23:13:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1333,16 +1333,26 @@ ENDTWO
sub role_select_row {
my ($roles,$col_width,$tablecolor,$title) = @_;
- my $output = &row_title($col_width,$tablecolor,$title);
+ my $output;
+ if (defined($title)) {
+ $output = &row_title($col_width,$tablecolor,$title);
+ }
$output .= qq|
| \n|;
- $output .= &row_closure();
+ if (defined($title)) {
+ $output .= &row_closure();
+ }
return $output;
}
@@ -1354,10 +1364,10 @@ sub course_select_row {
|;
my $courseform=''.&Apache::loncommon::selectcourse_link
@@ -1376,7 +1395,7 @@ sub course_select_row {
$output .= '
'.&mt('Pick courses by category:').'
';
$output .= ''.$$codetitles[0].' '."\n".
' |