--- loncom/lonnet/perl/lonnet.pm 2008/05/29 05:44:53 1.959 +++ loncom/lonnet/perl/lonnet.pm 2008/06/06 04:53:51 1.960 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.959 2008/05/29 05:44:53 raeburn Exp $ +# $Id: lonnet.pm,v 1.960 2008/06/06 04:53:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -958,6 +958,10 @@ sub retrieve_inst_usertypes { if (defined(&domain($udom,'primary'))) { my $uhome=&domain($udom,'primary'); my $rep=&reply("inst_usertypes:$udom",$uhome); + if ($rep =~ /^(con_lost|error|no_such_host|refused)/) { + &logthis("get_dom failed - $rep returned from $uhome in domain: $udom"); + return (\%returnhash,\@order); + } my ($hashitems,$orderitems) = split(/:/,$rep); my @pairs=split(/\&/,$hashitems); foreach my $item (@pairs) { @@ -4534,7 +4538,6 @@ sub allowed { } # Full access at system, domain or course-wide level? Exit. - if ($thisallowed=~/F/) { return 'F'; }