--- loncom/interface/lonsearchcat.pm 2003/01/06 13:54:25 1.162 +++ loncom/interface/lonsearchcat.pm 2003/02/03 04:02:17 1.164 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.162 2003/01/06 13:54:25 www Exp $ +# $Id: lonsearchcat.pm,v 1.164 2003/02/03 04:02:17 harris41 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -79,7 +79,6 @@ use Apache::lonnet(); use Apache::File(); use CGI qw(:standard); use Text::Query; -use DBI; use GDBM_File; use Apache::loncommon(); use Apache::lonmysql(); @@ -2963,7 +2962,12 @@ sub start_fresh_session { 1; sub cleanup { - untie %groupsearch_db if (tied(%groupsearch_db)); + if (tied(%groupsearch_db)) { + &Apache::lonnet::logthis('Cleanup searchcat: groupsearch_db'); + unless (untie(%groupsearch_db)) { + &Apache::lonnet::logthis('Failed cleanup searchcat: groupsearch_db'); + } + } &Apache::lonmysql::disconnect_from_db(); }