--- loncom/interface/groupsort.pm 2003/01/09 22:04:28 1.17 +++ loncom/interface/groupsort.pm 2003/01/14 18:47:50 1.18 @@ -2,7 +2,7 @@ # The LON-CAPA group sort handler # Allows for sorting prior to import into RAT. # -# $Id: groupsort.pm,v 1.17 2003/01/09 22:04:28 www Exp $ +# $Id: groupsort.pm,v 1.18 2003/01/14 18:47:50 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,7 +45,12 @@ my %hash; # variable to tie to user spec my $iconpath; # variable to be accessible to multiple subroutines sub cleanup { - untie(%hash) if (tied(%hash)); + if (tied(%hash)){ + &Apache::lonnet::logthis('Cleanup groupsort: hash'); + unless (untie(%hash)) { + &Apache::lonnet::logthis('Failed cleanup groupsort: hash'); + } + } } # ---------------------------------------------------------------- Main Handler