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

raeburn lon-capa-cvs@mail.lon-capa.org
Tue, 07 Dec 2004 00:49:27 -0000


raeburn		Mon Dec  6 19:49:27 2004 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  Prevent section value being set as 'undefined'.
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.90 loncom/interface/loncreateuser.pm:1.91
--- loncom/interface/loncreateuser.pm:1.90	Thu Dec  2 16:32:51 2004
+++ loncom/interface/loncreateuser.pm	Mon Dec  6 19:49:27 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.90 2004/12/02 21:32:51 albertel Exp $
+# $Id: loncreateuser.pm,v 1.91 2004/12/07 00:49:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -211,7 +211,7 @@
                 return;
             } 
             var userrole = document.cu.role.options[document.cu.role.selectedIndex].value
-            var section;
+            var section="";
             var numsections = 0;
             for (var i=0; i<document.cu.currsec.length; i++) {
                 if (document.cu.currsec.options[i].selected == true ) {