--- loncom/interface/domainprefs.pm 2022/09/19 19:20:47 1.160.6.118.2.10 +++ loncom/interface/domainprefs.pm 2023/01/23 03:28:37 1.160.6.118.2.11 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.160.6.118.2.10 2022/09/19 19:20:47 raeburn Exp $ +# $Id: domainprefs.pm,v 1.160.6.118.2.11 2023/01/23 03:28:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1477,7 +1477,7 @@ sub print_login { $styleon{$lonhost} = 'display:none'; $styleoff{$lonhost} = ''; } - if (ref($settings->{'saml'}) eq 'HASH') { + if ((ref($settings) eq 'HASH') && (ref($settings->{'saml'}) eq 'HASH')) { foreach my $lonhost (keys(%{$settings->{'saml'}})) { if (ref($settings->{'saml'}{$lonhost}) eq 'HASH') { $saml{$lonhost} = 1;