--- loncom/homework/grades.pm 2008/02/04 17:45:07 1.506 +++ loncom/homework/grades.pm 2008/02/04 23:30:05 1.507 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.506 2008/02/04 17:45:07 raeburn Exp $ +# $Id: grades.pm,v 1.507 2008/02/04 23:30:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5524,6 +5524,10 @@ sub scantron_validator_positional { # If the split only gives us one element.. the full length of the # answer string, no bubbles are filled in: + if ($answers_needed eq '') { + return; + } + if (length($array[0]) eq $$scantron_config{'Qlength'}*$answers_needed) { for (my $ans=0; $ans<$answers_needed; $ans++ ) { $record->{"scantron.$ansnum.answer"}=''; 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.