--- loncom/homework/grades.pm 2003/05/30 21:42:36 1.93 +++ loncom/homework/grades.pm 2003/06/12 20:11:07 1.95 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.93 2003/05/30 21:42:36 albertel Exp $ +# $Id: grades.pm,v 1.95 2003/06/12 20:11:07 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2590,14 +2590,14 @@ sub getSymbMap { $mapiterator->next(); # skip the first BEGIN_MAP my $mapcurRes = $mapiterator->next(); # for "current resource" my $ctr=0; - while ($mapdepth > 0 && $ctr < 100) { + while ($mapdepth > 0) { if($mapcurRes == $mapiterator->BEGIN_MAP) { $mapdepth++; } if($mapcurRes == $mapiterator->END_MAP) { $mapdepth++; } if (ref($mapcurRes) && $mapcurRes->is_problem() && !$mapcurRes->randomout) { $countProblems++; } - $ctr++; + $mapcurRes = $mapiterator->next(); } if ($countProblems > 0) { my $title = $curRes->compTitle();