--- loncom/auth/lonroles.pm 2010/06/02 15:41:50 1.250 +++ loncom/auth/lonroles.pm 2010/06/02 16:26:21 1.251 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.250 2010/06/02 15:41:50 raeburn Exp $ +# $Id: lonroles.pm,v 1.251 2010/06/02 16:26:21 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1120,10 +1120,12 @@ sub print_rolerows { if (ref($roletext->{$sortrole->{$which}}) eq 'ARRAY') { $output.= &Apache::loncommon::start_data_table_row(). $roletext->{$sortrole->{$which}}->[0]. - &Apache::loncommon::end_data_table_row(). - &Apache::loncommon::continue_data_table_row(). - $roletext->{$sortrole->{$which}}->[1]. &Apache::loncommon::end_data_table_row(); + if ($roletext->{$sortrole->{$which}}->[1] ne '') { + $output .= &Apache::loncommon::continue_data_table_row(). + $roletext->{$sortrole->{$which}}->[1]. + &Apache::loncommon::end_data_table_row(); + } } if ($sortrole->{$which} =~ m-dc\./($match_domain)/-) { if (ref($dcroles) eq 'HASH') {