--- loncom/homework/grades.pm 2004/05/07 16:12:32 1.197 +++ loncom/homework/grades.pm 2004/05/07 17:40:51 1.198 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.197 2004/05/07 16:12:32 albertel Exp $ +# $Id: grades.pm,v 1.198 2004/05/07 17:40:51 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3212,7 +3212,8 @@ sub displaySubByDates { my @matchKey = sort(grep /^resource\.\Q$partid\E\..*?\.submission$/,@versionKeys); # next if ($$record{"$version:resource.$partid.solved"} eq ''); foreach my $matchKey (@matchKey) { - if (exists $$record{$version.':'.$matchKey}) { + if (exists($$record{$version.':'.$matchKey}) && + $$record{$version.':'.$matchKey} ne '') { my ($responseId)=($matchKey=~ /^resource\.\Q$partid\E\.(.*?)\.submission$/); $displaySub[0].='Part '.$partid.' '; $displaySub[0].='(ID '.