--- loncom/homework/grades.pm 2004/10/07 22:12:47 1.220 +++ loncom/homework/grades.pm 2004/10/18 19:37:10 1.222 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.220 2004/10/07 22:12:47 albertel Exp $ +# $Id: grades.pm,v 1.222 2004/10/18 19:37:10 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1411,7 +1411,8 @@ sub submission { if (!&canview($usec)) { $request->print('Unable to view requested student.('. - $uname.$udom.$usec.$ENV{'request.course.id'}.')'); + $uname.'@'.$udom.' in section '.$usec.' in course id '. + $ENV{'request.course.id'}.')'); $request->print(&show_grading_menu_form($symb,$url)); return; } @@ -4460,7 +4461,8 @@ sub scantron_validate_CODE { $scan_data); my $CODE=$$scan_record{'scantron.CODE'}; my $error=0; - if (!exists($allcodes{$CODE}) && !$$scan_record{'scantron.useCODE'}) { + if (%allcodes && !exists($allcodes{$CODE}) + && !$$scan_record{'scantron.useCODE'}) { &scantron_get_correction($r,$i,$scan_record, \%scantron_config, $line,'incorrectCODE',\%allcodes);