--- loncom/interface/statistics/lonstudentassessment.pm 2003/01/09 15:59:17 1.25 +++ loncom/interface/statistics/lonstudentassessment.pm 2003/01/09 16:37:48 1.26 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # (Publication Handler # -# $Id: lonstudentassessment.pm,v 1.25 2003/01/09 15:59:17 matthew Exp $ +# $Id: lonstudentassessment.pm,v 1.26 2003/01/09 16:37:48 minaeibi Exp $ # # Copyright Michigan State University Board of Trustees # @@ -139,7 +139,7 @@ sub BuildStudentAssessmentPage { if($Count % 2) { $out .= ''; } else { - $out .= ''; + $out .= ''; } my $displayString = $out.'DISPLAYDATA'.$spacing; $r->print(&Apache::lonhtmlcommon::FormatStudentInformation( @@ -173,18 +173,17 @@ sub BuildStudentAssessmentPage { untie(%cache); } } - - if(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) { - $r->print(&StudentAverageTotal(\%cache, $students, $sequenceKeys)); - untie(%cache); - } - $r->print(''."\n"); + $r->print(''."\n"); if($selected == 0) { $Str .= '

WARNING: '; - $Str .= 'Please select a student

'; + $Str .= 'No Students enrolled OR Please select a student'; $r->print($Str); + } else { + if(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) { + $r->print(&StudentAverageTotal(\%cache, $students, $sequenceKeys)); + untie(%cache); + } } - return; }