--- loncom/homework/matchresponse.pm 2004/03/08 23:23:04 1.37 +++ loncom/homework/matchresponse.pm 2004/03/15 22:09:52 1.38 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Full matching style response # -# $Id: matchresponse.pm,v 1.37 2004/03/08 23:23:04 albertel Exp $ +# $Id: matchresponse.pm,v 1.38 2004/03/15 22:09:52 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -601,6 +601,7 @@ sub end_foil { if (defined($Apache::response::foilnames{$name})) { &Apache::lonxml::error(&mt("Foil name [_1] appears more than once. Foil names need to be unique.",$name)); } + $Apache::response::foilnames{$name}++; my $location =&Apache::lonxml::get_param('location',$parstack, $safeeval); if ( $Apache::matchresponse::conceptgroup