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

raeburn raeburn at source.lon-capa.org
Sun Dec 14 17:11:03 EST 2014


raeburn		Sun Dec 14 22:11:03 2014 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  - Coding style: keys()
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.343 loncom/interface/lonsearchcat.pm:1.344
--- loncom/interface/lonsearchcat.pm:1.343	Sun Feb 23 22:15:27 2014
+++ loncom/interface/lonsearchcat.pm	Sun Dec 14 22:11:03 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.343 2014/02/23 22:15:27 raeburn Exp $
+# $Id: lonsearchcat.pm,v 1.344 2014/12/14 22:11:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3800,7 +3800,7 @@
 ######################################################################
 sub start_fresh_session {
     delete $groupsearch_db{'mode_catalog'};
-    foreach (keys %groupsearch_db) {
+    foreach (keys(%groupsearch_db)) {
         if ($_ =~ /^pre_/) {
             delete $groupsearch_db{$_};
         }




More information about the LON-CAPA-cvs mailing list