--- loncom/homework/bridgetask.pm 2015/10/05 02:35:40 1.265 +++ loncom/homework/bridgetask.pm 2016/05/30 02:45:32 1.266 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.265 2015/10/05 02:35:40 raeburn Exp $ +# $Id: bridgetask.pm,v 1.266 2016/05/30 02:45:32 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -711,7 +711,8 @@ sub start_Task { $target eq 'tex') { if ($env{'form.markaccess'}) { my @interval=&Apache::lonnet::EXT("resource.0.interval"); - &Apache::lonnet::set_first_access($interval[1],$interval[0]); + my ($timelimit) = ($interval[0] =~ /^(\d+)/); + &Apache::lonnet::set_first_access($interval[1],$timelimit); } } @@ -1443,7 +1444,7 @@ DONEBUTTON if ($canstore) { &Apache::structuretags::finalize_storage(); my @interval = &Apache::lonnet::EXT("resource.0.interval"); - if ($interval[0] =~ /^\d+$/ && $interval[1] eq 'resource') { + if ($interval[0] =~ /^\d+/ && $interval[1] eq 'resource') { my $key=$courseid."\0".$symb; my %times=&Apache::lonnet::get('firstaccesstimes', [$key],$domain,$name);