--- loncom/interface/spreadsheet/lonspreadsheet.pm 2004/06/08 15:55:38 1.38 +++ loncom/interface/spreadsheet/lonspreadsheet.pm 2004/10/12 20:51:54 1.39 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.38 2004/06/08 15:55:38 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.39 2004/10/12 20:51:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -293,8 +293,8 @@ sub handler { # Check that the student is in their section? if (exists($ENV{'request.course.sec'}) && $ENV{'request.course.sec'} ne '' ) { - my $stu_sec = &Apache::lonnet::usection($domain,$name, - $ENV{'request.course.id'}); + my $stu_sec = &Apache::lonnet::getsection($domain,$name, + $ENV{'request.course.id'}); if ($stu_sec ne $ENV{'request.course.sec'}) { $ENV{'user.error.msg'}= $r->uri.":vgr:0:0:Requested student not in your section.";