--- loncom/interface/statistics/lonproblemstatistics.pm 2003/03/26 21:47:47 1.45 +++ loncom/interface/statistics/lonproblemstatistics.pm 2003/03/26 21:55:18 1.46 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemstatistics.pm,v 1.45 2003/03/26 21:47:47 matthew Exp $ +# $Id: lonproblemstatistics.pm,v 1.46 2003/03/26 21:55:18 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -658,6 +658,7 @@ sub plot_statistics { } push (@Results,$wrongpercent); my $data = $Results[$fieldindex]; + $data = 0 if ($data eq 'nan'); $Max = $data if ($Max<$data); push (@Data,$data); }