--- loncom/lonnet/perl/lonnet.pm 2018/12/05 03:29:11 1.1392 +++ loncom/lonnet/perl/lonnet.pm 2018/12/08 15:17:25 1.1394 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.1392 2018/12/05 03:29:11 raeburn Exp $ +# $Id: lonnet.pm,v 1.1394 2018/12/08 15:17:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -711,6 +711,7 @@ sub check_for_valid_session { if (!defined($disk_env{'user.name'}) || !defined($disk_env{'user.domain'})) { + untie(%disk_env); return undef; } @@ -723,6 +724,7 @@ sub check_for_valid_session { $userhashref->{'ltiuri'} = $disk_env{'request.lti.uri'}; } } + untie(%disk_env); return $handle; } @@ -1643,7 +1645,6 @@ sub check_balancer_result { $is_balancer = 1; $currtargets = $result->{'targets'}; $currrules = $result->{'rules'}; - $dom_balancers = $currbalancer; } $dom_balancers = $currbalancer; } else { @@ -5354,8 +5355,8 @@ sub set_first_access { my $firstaccess=&get_first_access($type,$symb,$map); if ($firstaccess) { &logthis("First access time already set ($firstaccess) when attempting ". - "to set new value (type: $type, extent: $res) for $uname:$udom ". - "in $courseid"); + "to set new value (type: $type, extent: $res) for $uname:$udom ". + "in $courseid"); return 'already_set'; } else { my $start = time;