--- loncom/interface/lonindexer.pm 2003/06/16 17:27:33 1.67 +++ loncom/interface/lonindexer.pm 2003/07/17 21:11:09 1.69 @@ -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.69 2003/07/17 21:11:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -126,13 +126,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 +318,10 @@ END