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

raeburn raeburn@source.lon-capa.org
Mon, 09 Feb 2009 03:42:03 -0000


raeburn		Mon Feb  9 03:42:03 2009 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - If $domconfig{'coursecategories'} is not a hash ref ... make it one. 
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.86 loncom/interface/domainprefs.pm:1.87
--- loncom/interface/domainprefs.pm:1.86	Sun Feb  8 21:04:01 2009
+++ loncom/interface/domainprefs.pm	Mon Feb  9 03:42:03 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.86 2009/02/08 21:04:01 raeburn Exp $
+# $Id: domainprefs.pm,v 1.87 2009/02/09 03:42:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4852,8 +4852,10 @@
     } else {
         $changes{'togglecats'} = 1;
         $changes{'categorize'} = 1;
-        $domconfig{'coursecategories'}{'togglecats'} = $env{'form.togglecats'};
-        $domconfig{'coursecategories'}{'categorize'} = $env{'form.categorize'};
+        $domconfig{'coursecategories'} = {
+                                             togglecats => $env{'form.togglecats'},
+                                             categorize => $env{'form.categorize'},
+                                         };
     }
     if (ref($cathash) eq 'HASH') {
         if (($domconfig{'coursecategories'}{'cats'}{'instcode::0'} ne '')  && ($env{'form.instcode'} == 0)) {