--- loncom/interface/lonnavmaps.pm 2004/09/18 16:55:33 1.292 +++ loncom/interface/lonnavmaps.pm 2004/09/19 14:47:37 1.293 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.292 2004/09/18 16:55:33 albertel Exp $ +# $Id: lonnavmaps.pm,v 1.293 2004/09/19 14:47:37 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3964,8 +3964,8 @@ sub countParts { sub countResponses { my $self = shift; my $count; - foreach my $part ($self->parts()) { - $count+= $self->responseIds($part); + foreach my $part (@{$self->parts()}) { + $count+= scalar($self->responseIds($part)); } return $count; }