--- loncom/homework/grades.pm 2007/11/13 11:06:54 1.490 +++ loncom/homework/grades.pm 2007/11/16 07:55:01 1.491 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.490 2007/11/13 11:06:54 foxr Exp $ +# $Id: grades.pm,v 1.491 2007/11/16 07:55:01 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6077,7 +6077,10 @@ sub scantron_remove_scan_data { } my $result; if (@todelete) { - $result=&Apache::lonnet::del('nohist_scantrondata',\@todelete,$cdom,$cname); + $result = &Apache::lonnet::del('nohist_scantrondata', + \@todelete,$cdom,$cname); + } else { + $result = 'ok'; } return $result; }