--- loncom/interface/coursecatalog.pm 2010/10/07 14:41:49 1.65 +++ loncom/interface/coursecatalog.pm 2011/01/25 02:49:42 1.67 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for displaying the course catalog interface # -# $Id: coursecatalog.pm,v 1.65 2010/10/07 14:41:49 raeburn Exp $ +# $Id: coursecatalog.pm,v 1.67 2011/01/25 02:49:42 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -799,8 +799,8 @@ sub build_courseinfo_hash { $selfenroll_end = $courses->{$course}{'selfenroll_end_date'}; $categories = $courses->{$course}{'categories'}; push(@owners,$singleowner); - if (ref($courses->{$course}{'co-owners'}) eq 'ARRAY') { - foreach my $item (@{$courses->{$course}{'co-owners'}}) { + if ($courses->{$course}{'co-owners'} ne '') { + foreach my $item (split(/,/,$courses->{$course}{'co-owners'})) { push(@owners,$item); } } @@ -1017,7 +1017,13 @@ sub courseinfo_row { if (($info->{'selfenroll_start'} > 0) && ($info->{'selfenroll_start'} > $now)) { $output .= '