--- loncom/interface/domainprefs.pm 2008/12/11 16:37:42 1.77 +++ loncom/interface/domainprefs.pm 2008/12/17 21:50:29 1.78 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.77 2008/12/11 16:37:42 raeburn Exp $ +# $Id: domainprefs.pm,v 1.78 2008/12/17 21:50:29 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1246,10 +1246,12 @@ sub print_quotas { if (ref($types) eq 'ARRAY') { foreach my $type (@{$types}) { my $currdefquota; - if (ref($settings->{defaultquota}) eq 'HASH') { - $currdefquota = $settings->{defaultquota}->{$type}; - } else { - $currdefquota = $settings->{$type}; + if (ref($settings) eq 'HASH') { + if (ref($settings->{defaultquota}) eq 'HASH') { + $currdefquota = $settings->{defaultquota}->{$type}; + } else { + $currdefquota = $settings->{$type}; + } } if (defined($usertypes->{$type})) { $typecount ++; @@ -1259,9 +1261,11 @@ sub print_quotas { '