--- loncom/homework/bridgetask.pm 2006/04/20 07:00:20 1.143 +++ loncom/homework/bridgetask.pm 2006/05/09 15:09:21 1.144 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.143 2006/04/20 07:00:20 albertel Exp $ +# $Id: bridgetask.pm,v 1.144 2006/05/09 15:09:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -170,8 +170,8 @@ sub add_grading_button { my (undef,$cid)=&Apache::lonxml::whichuser(); my $cnum=$env{'course.'.$cid.'.num'}; my $cdom=$env{'course.'.$cid.'.domain'}; - my %sections; - my $numsections=&Apache::loncommon::get_sections($cdom,$cnum,\%sections); + my %sections = &Apache::loncommon::get_sections($cdom,$cnum); + my $size=5; if (scalar(keys(%sections)) < 3) { $size=scalar(keys(%sections))+2; @@ -214,7 +214,7 @@ sub add_grading_button { 'gradingdomain'); $result.=&Apache::loncommon::studentbrowser_javascript(); $result.= '

'; - } + } return $result; }