[LON-CAPA-cvs] cvs: loncom /homework grades.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 16 Nov 2007 07:55:05 -0000


albertel		Fri Nov 16 02:55:05 2007 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - don't throw an error if the scan_data has already been removed
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.490 loncom/homework/grades.pm:1.491
--- loncom/homework/grades.pm:1.490	Tue Nov 13 06:06:54 2007
+++ loncom/homework/grades.pm	Fri Nov 16 02:55:01 2007
@@ -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 @@
     }
     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;
 }