--- loncom/interface/statistics/lonproblemanalysis.pm 2002/08/14 20:42:49 1.8 +++ loncom/interface/statistics/lonproblemanalysis.pm 2002/08/14 21:51:51 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # (Publication Handler # -# $Id: lonproblemanalysis.pm,v 1.8 2002/08/14 20:42:49 stredwic Exp $ +# $Id: lonproblemanalysis.pm,v 1.9 2002/08/14 21:51:51 stredwic Exp $ # # Copyright Michigan State University Board of Trustees # @@ -115,17 +115,21 @@ sub BuildAnalyzePage { splice(@$students, $studentIndex, 1); } } - untie(%cache); + unless(untie(%cache)) { + $r->print('Can not untie hash.'); + $r->rflush(); + } - if(&Apache::loncoursedata::DownloadStudentCourseDataSeparate($students, - 'true', - $cacheDB, - 'true', - 'true', - $courseID, - $r, - $c) ne 'OK') { - $r->print($Str); + my $error = + &Apache::loncoursedata::DownloadStudentCourseDataSeparate($students, + 'true', + $cacheDB, + 'true', + 'true', + $courseID, + $r, $c); + if($error ne 'OK') { + $r->print($error.'
Error downloading course data
'); return; }