--- loncom/interface/lonviewcoauthors.pm 2024/05/24 15:27:59 1.5 +++ loncom/interface/lonviewcoauthors.pm 2024/08/31 21:00:44 1.6 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to display the coauthors # -# $Id: lonviewcoauthors.pm,v 1.5 2024/05/24 15:27:59 raeburn Exp $ +# $Id: lonviewcoauthors.pm,v 1.6 2024/08/31 21:00:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -401,6 +401,7 @@ sub print_coauthors { my (%userinfo,%showuser); foreach my $item (keys(%coauthors)) { my ($username,$domain,$userrole) = split(/:/,$item); + next if (($username eq '') && ($domain eq'')); my ($start,$end) = split(/:/,$coauthors{$item}); next if ($start eq '-1' && $end eq '-1'); if (ref($userinfo{$username.':'.$domain}) eq 'HASH') {