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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Wed, 05 Dec 2007 17:53:14 -0000


raeburn		Wed Dec  5 12:53:14 2007 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  $groupslist includes opening and closing double quotes. Eliminate duplication.
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.8 loncom/interface/lonuserutils.pm:1.9
--- loncom/interface/lonuserutils.pm:1.8	Wed Dec  5 11:49:55 2007
+++ loncom/interface/lonuserutils.pm	Wed Dec  5 12:53:13 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.8 2007/12/05 16:49:55 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.9 2007/12/05 17:53:13 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2904,7 +2904,7 @@
     my $groupslist= &get_groupslist();
     return <<"END";
 function validate(caller) {
-    var groups = new Array("$groupslist");
+    var groups = new Array($groupslist);
     var secname = caller.value;
     if ((secname == 'all') || (secname == 'none')) {
         alert("'"+secname+"' may not be used as the name for a section, as it is a reserved word.\\nPlease choose a different section name.");