--- loncom/interface/lonindexer.pm 2003/06/16 17:27:33 1.67 +++ loncom/interface/lonindexer.pm 2003/08/21 21:57:36 1.75 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.67 2003/06/16 17:27:33 matthew Exp $ +# $Id: lonindexer.pm,v 1.75 2003/08/21 21:57:36 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -62,6 +62,7 @@ use strict; use Apache::lonnet(); use Apache::loncommon(); use Apache::Constants qw(:common); +use Apache::lonmeta; use Apache::File; use GDBM_File; @@ -126,13 +127,16 @@ sub handler { my $diropendb = "/home/httpd/perl/tmp/$ENV{'user.domain'}_$ENV{'user.name'}_indexer.db"; %hash = (); - my %dbfile; - if (tie(%dbfile,'GDBM_File',$diropendb,&GDBM_WRCREAT(),0640)) { - while(my($key,$value)=each(%dbfile)) { - $hash{$key}=$value; - } - untie(%dbfile); - + { + my %dbfile; + if (tie(%dbfile,'GDBM_File',$diropendb,&GDBM_WRCREAT(),0640)) { + while(my($key,$value)=each(%dbfile)) { + $hash{$key}=$value; + } + untie(%dbfile); + } + } + { if ($ENV{'form.launch'} eq '1') { &start_fresh_session(); } @@ -315,10 +319,14 @@ END