[LON-CAPA-cvs] cvs: loncom /interface loncoursedata.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 05 Feb 2003 01:39:32 -0000


albertel		Tue Feb  4 20:39:32 2003 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  - looks like there are situations in which to_idnumber is supposed to be undefined?
  
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.43 loncom/interface/loncoursedata.pm:1.44
--- loncom/interface/loncoursedata.pm:1.43	Fri Jan 31 17:34:38 2003
+++ loncom/interface/loncoursedata.pm	Tue Feb  4 20:39:32 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # (Publication Handler
 #
-# $Id: loncoursedata.pm,v 1.43 2003/01/31 22:34:38 matthew Exp $
+# $Id: loncoursedata.pm,v 1.44 2003/02/05 01:39:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -522,7 +522,7 @@
             $errorMessage .= 'loncoursedata::ProcessTopLevelMap.';
             $errorMessage .= "  bighash to_$currentResourceID not defined!";
             &Apache::lonnet::logthis($errorMessage);
-	    last;
+	    if (!defined($currentResourceID)) {last;}
 	}
 	my @nextResources=();
 	foreach (split(/\,/,$hash{'to_'.$currentResourceID})) {