--- loncom/homework/structuretags.pm 2023/09/06 22:46:09 1.512.2.24.2.4 +++ loncom/homework/structuretags.pm 2023/09/07 20:47:14 1.512.2.24.2.5 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.512.2.24.2.4 2023/09/06 22:46:09 raeburn Exp $ +# $Id: structuretags.pm,v 1.512.2.24.2.5 2023/09/07 20:47:14 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1766,8 +1766,8 @@ sub start_problem { ($result,$form_tag_start,$probpartlist) = &page_start($target,$token,$tagstack,$parstack,$parser,$safeeval, $name); - } elsif ((($target eq 'grade') && ($Apache::lonhomework::type eq 'randomizetry')) || { - ($target eq 'answer')) { + } elsif ((($target eq 'grade') && ($Apache::lonhomework::type eq 'randomizetry')) || + ($target eq 'answer')) { my ($symb)= &Apache::lonnet::whichuser(); if ($symb ne '') { my $navmap = Apache::lonnavmaps::navmap->new(); @@ -1789,7 +1789,7 @@ sub start_problem { $target eq 'tex') { my ($symb)= &Apache::lonnet::whichuser(); - ($status,$accessmsg,$slot_name,$slot,$ipused) = + ($status,$accessmsg,$slot_name,$slot) = &Apache::lonhomework::check_slot_access('0','problem',$symb,$probpartlist); push (@Apache::inputtags::status,$status); }