--- loncom/interface/statistics/lonproblemanalysis.pm 2004/10/04 19:10:26 1.91 +++ loncom/interface/statistics/lonproblemanalysis.pm 2004/10/04 19:49:41 1.92 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.91 2004/10/04 19:10:26 matthew Exp $ +# $Id: lonproblemanalysis.pm,v 1.92 2004/10/04 19:49:41 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -663,6 +663,18 @@ sub OR_tries_analysis { if (defined($Concepts)) { $num_concepts = scalar(@$Concepts); } # for (my $try=$mintries;$try<=$maxtries;$try++) { + if (! defined($response_data{'_total'}->[$try]) || + $response_data{'_total'}->[$try] == 0) { + if ($try > 1) { + $analysis_html.= ''. + &mt('None of the selected students attempted the problem more than [_1] times.',$try-1). + ''; + } else { + $analysis_html.= ''. + &mt('None of the selected students have attempted the problem').''; + } + last; + } my $concept_graph=''; if ($num_concepts > 1) { #