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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 20 Sep 2002 22:33:55 -0000


albertel		Fri Sep 20 18:33:55 2002 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  - if there is an error getting the class list return nothing.
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.32 loncom/interface/loncoursedata.pm:1.33
--- loncom/interface/loncoursedata.pm:1.32	Tue Sep 17 11:34:42 2002
+++ loncom/interface/loncoursedata.pm	Fri Sep 20 18:33:54 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # (Publication Handler
 #
-# $Id: loncoursedata.pm,v 1.32 2002/09/17 15:34:42 matthew Exp $
+# $Id: loncoursedata.pm,v 1.33 2002/09/20 22:33:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -139,7 +139,7 @@
     %classlist=&Apache::lonnet::dump('classlist',$courseDomain, $courseNumber);
     foreach(keys (%classlist)) {
         if(/^(con_lost|error|no_such_host)/i) {
-            return \%classlist;
+	    return;
         }
     }