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

raeburn raeburn at source.lon-capa.org
Fri Dec 12 09:30:47 EST 2014


raeburn		Fri Dec 12 14:30:47 2014 EDT

  Modified files:              
    /loncom/interface	lonpopulate.pm 
  Log:
  - Coding style: keys()
  
  
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.81 loncom/interface/lonpopulate.pm:1.82
--- loncom/interface/lonpopulate.pm:1.81	Wed Aug 27 01:29:27 2014
+++ loncom/interface/lonpopulate.pm	Fri Dec 12 14:30:47 2014
@@ -1,5 +1,5 @@
 # automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.81 2014/08/27 01:29:27 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.82 2014/12/12 14:30:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -290,7 +290,7 @@
 # Get course settings
   my %enrollvar;
   my %settings = &Apache::lonnet::dump('environment',$dom,$crs);
-  foreach my $item (keys %settings) {
+  foreach my $item (keys(%settings)) {
       if ($item =~ m/^internal\.(.+)$/) {
           $enrollvar{$1} = $settings{$item};
       } elsif ($item =~ /^default_enrollment_(start|end)_date$/) {




More information about the LON-CAPA-cvs mailing list