--- loncom/lonnet/perl/lonnet.pm 2007/06/13 01:43:54 1.888 +++ loncom/lonnet/perl/lonnet.pm 2007/06/13 02:21:54 1.889 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.888 2007/06/13 01:43:54 albertel Exp $ +# $Id: lonnet.pm,v 1.889 2007/06/13 02:21:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -7601,7 +7601,10 @@ sub machine_ids { $hostname ||= &hostname($perlvar{'lonHostID'}); my @ids; my %name_to_host = &all_names(); - return @{ $name_to_host{$hostname} }; + if (ref($name_to_host{$hostname}) eq 'ARRAY') { + return @{ $name_to_host{$hostname} }; + } + return; } sub additional_machine_domains { @@ -7714,7 +7717,6 @@ sub correct_line_ends { sub goodbye { &logthis("Starting Shut down"); - &logthis("test"); #not converted to using infrastruture and probably shouldn't be &logthis(sprintf("%-20s is %s",'%badServerCache',length(&nfreeze(\%badServerCache)))); #converted