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

raeburn raeburn at source.lon-capa.org
Mon Jun 5 17:12:05 EDT 2017


raeburn		Mon Jun  5 21:12:05 2017 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Sanity checking.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.300 loncom/interface/domainprefs.pm:1.301
--- loncom/interface/domainprefs.pm:1.300	Mon May 22 07:58:46 2017
+++ loncom/interface/domainprefs.pm	Mon Jun  5 21:12:05 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.300 2017/05/22 07:58:46 droeschl Exp $
+# $Id: domainprefs.pm,v 1.301 2017/06/05 21:12:05 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3261,8 +3261,10 @@
         my $css_class;
         my %existing=&Apache::lonnet::dump('roles',$dom,$confname,'rolesdef_');
         my (%customroles,%ordered,%current);
-        if (ref($settings->{'adhoc'}) eq 'HASH') {
-            %current = %{$settings->{'adhoc'}};
+        if (ref($settings) eq 'HASH') {
+            if (ref($settings->{'adhoc'}) eq 'HASH') {
+                %current = %{$settings->{'adhoc'}};
+            }
         }
         my $count = 0;
         foreach my $key (sort(keys(%existing))) {




More information about the LON-CAPA-cvs mailing list