--- loncom/interface/Attic/lonspreadsheet.pm 2002/10/25 19:47:14 1.129 +++ loncom/interface/Attic/lonspreadsheet.pm 2002/10/29 16:04:13 1.130 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.129 2002/10/25 19:47:14 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.130 2002/10/29 16:04:13 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1095,7 +1095,11 @@ sub exportdata { my @exportarray=(); foreach ('A','B','C','D','E','F','G','H','I','J','K','L','M', 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z') { - push(@exportarray,$sheet->{'values'}->{$_.'0'}); + if (exists($sheet->{'values'}->{$_.'0'})) { + push(@exportarray,$sheet->{'values'}->{$_.'0'}); + } else { + push(@exportarray,''); + } } return @exportarray; } @@ -1927,8 +1931,8 @@ ENDPOP next if ($_!~/^A(\d+)/); my $row=$1; next if (($f{$_}=~/^[\!\~\-]/) || ($row==0)); - my @studentdata=&exportsheet($sheet,split(/\:/,$f{$_}), - 'studentcalc'); + my ($sname,$sdom) = split(':',$f{$_}); + my @studentdata=&exportsheet($sheet,$sname,$sdom,'studentcalc'); undef %userrdatas; $now++; $r->print('