--- loncom/interface/lonsearchcat.pm 2013/08/13 13:27:38 1.331.4.6 +++ loncom/interface/lonsearchcat.pm 2012/12/17 08:29:26 1.333 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.331.4.6 2013/08/13 13:27:38 raeburn Exp $ +# $Id: lonsearchcat.pm,v 1.333 2012/12/17 08:29:26 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1901,13 +1901,11 @@ sub ensure_db_and_table { ## Sanity check the table id. ## if (! defined($table) || $table eq '' || $table =~ /\D/ ) { - $r->print(&Apache::loncommon::start_page('Error') + $r->print(&Apache::loncommon::start_page(&mt('Error')) +. '

table: |'.$table.'|

' # SB .'

' .&mt('Unable to retrieve search results. ' .'Unable to determine the table results were saved in.') - .'

' - . '

'.&mt('Internal info:').'

' - .'
'.$table.'
' .&Apache::loncommon::end_page() ); return undef; @@ -3743,6 +3741,7 @@ sub cleanup { &Apache::lonnet::logthis('Failed cleanup searchcat: groupsearch_db'); } } + &untiehash(); &Apache::lonmysql::disconnect_from_db(); return OK; }