--- loncom/interface/spreadsheet/Spreadsheet.pm 2003/05/16 20:55:11 1.1 +++ loncom/interface/spreadsheet/Spreadsheet.pm 2003/05/19 13:58:05 1.2 @@ -1,5 +1,5 @@ # -# $Id: Spreadsheet.pm,v 1.1 2003/05/16 20:55:11 matthew Exp $ +# $Id: Spreadsheet.pm,v 1.2 2003/05/19 13:58:05 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1500,7 +1500,9 @@ sub othersheets { my %results=&Apache::lonnet::dump($stype.'_spreadsheets', $self->{'cdom'}, $self->{'cnum'}); my ($tmp) = keys(%results); - unless ($tmp =~ /^(con_lost|error|no_such_host)/i ) { + if ($tmp =~ /^(con_lost|error|no_such_host)/i ) { + @alternatives = ('Default'); + } else { @alternatives = sort (keys(%results)); } return @alternatives;