--- loncom/interface/spreadsheet/Spreadsheet.pm 2006/09/03 00:45:51 1.71 +++ loncom/interface/spreadsheet/Spreadsheet.pm 2006/09/03 00:54:05 1.72 @@ -1,5 +1,5 @@ # -# $Id: Spreadsheet.pm,v 1.71 2006/09/03 00:45:51 albertel Exp $ +# $Id: Spreadsheet.pm,v 1.72 2006/09/03 00:54:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1891,7 +1891,7 @@ sub othersheets { $self->{'cdom'}, $self->{'cnum'}); my ($tmp) = keys(%results); if (%results - && $tmp =~ /^(con_lost|error|no_such_host)/i ) { + && $tmp !~ /^(con_lost|error|no_such_host)/i ) { push(@alternatives, sort(keys(%results))); } return @alternatives;