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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 13 Mar 2006 20:26:52 -0000


albertel		Mon Mar 13 15:26:52 2006 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - better detection if the paperid has any info to display
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.332 loncom/homework/grades.pm:1.333
--- loncom/homework/grades.pm:1.332	Fri Mar 10 19:08:48 2006
+++ loncom/homework/grades.pm	Mon Mar 13 15:26:51 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.332 2006/03/11 00:08:48 albertel Exp $
+# $Id: grades.pm,v 1.333 2006/03/13 20:26:51 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5003,7 +5003,7 @@
 #the previous one or the current one
 
     $r->print("<p><b>An error was detected ($error)</b>");
-    if ( defined($$scan_record{'scantron.PaperID'}) ) {
+    if ( $$scan_record{'scantron.PaperID'} =~ /\S/) {
 	$r->print(" for PaperID <tt>".
 		  $$scan_record{'scantron.PaperID'}."</tt> \n");
     } else {