--- loncom/interface/statistics/lonstudentassessment.pm 2006/08/18 15:15:38 1.143 +++ loncom/interface/statistics/lonstudentassessment.pm 2007/10/03 17:39:13 1.145 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentassessment.pm,v 1.143 2006/08/18 15:15:38 raeburn Exp $ +# $Id: lonstudentassessment.pm,v 1.145 2007/10/03 17:39:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -843,12 +843,17 @@ sub html_outputstudent { my @tmp = &Apache::loncoursedata::get_current_state ($student->{'username'},$student->{'domain'},undef, $env{'request.course.id'}); - if ((scalar @tmp > 0) && ($tmp[0] !~ /^error:/)) { + if ((scalar @tmp > 0) && ($tmp[0] !~ /^error:(.*)/)) { %StudentsData = @tmp; - } - if (scalar(@tmp) < 1) { + } else { + my $error = $1; + if (scalar(@tmp) < 1) { + $Str .= 'No Course Data'."\n"; + } else { + $Str .= 'Error getting student data ('. + $error.') '."\n"; + } $nodata_count++; - $Str .= 'No Course Data'."\n"; $r->print($Str); $r->rflush(); return; @@ -1951,9 +1956,6 @@ sub student_tries_on_sequence { # if ( ($links eq 'yes' && $symbol ne ' ') || ($links eq 'all')) { - if (length($symbol) > 1) { - &Apache::lonnet::logthis('length of symbol "'.$symbol.'" > 1'); - } my $link = '/adm/grades'. '?symb='.&escape($resource->symb). '&student='.$student->{'username'}.