--- loncom/interface/statistics/lonstudentsubmissions.pm 2005/04/07 06:56:24 1.40 +++ loncom/interface/statistics/lonstudentsubmissions.pm 2005/04/12 21:49:49 1.41 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentsubmissions.pm,v 1.40 2005/04/07 06:56:24 albertel Exp $ +# $Id: lonstudentsubmissions.pm,v 1.41 2005/04/12 21:49:49 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -263,6 +263,9 @@ sub prepare_html_output { ''; } } + if ($part_span == 0) { + next; + } if (! $single_part) { my $tmpname = $partid; if ($partid =~/^\d+$/) { @@ -340,8 +343,9 @@ sub prepare_html_output { 'html','normal', @extra_resp_headers); my $width = scalar(@headers); + next if ($width < 1); my $resp_data; - $resp_data->{'fake'} = qq{ }; + $resp_data->{'fake'} = qq{ }; if (! defined($results)) { $results = []; } @@ -514,7 +518,7 @@ sub html_non_essay_results { return ''; } # - my $submission = &HTML::Entities::decode($response->{'Submission'}); + my $submission = &HTML::Entities::decode(&Apache::lonnet::unescape($response->{'Submission'})); return '' if (! defined($submission) || $submission eq ''); $submission =~ s/\\\"/\"/g; $submission =~ s/\\\'/\'/g;