--- loncom/interface/lonsearchcat.pm 2006/03/23 22:01:58 1.260 +++ loncom/interface/lonsearchcat.pm 2006/04/07 21:56:01 1.261 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.260 2006/03/23 22:01:58 albertel Exp $ +# $Id: lonsearchcat.pm,v 1.261 2006/04/07 21:56:01 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -199,8 +199,9 @@ sub handler { 'We were unable to retrieve data describing your search. '. 'This is a serious error and has been logged. '. 'Please alert your LON-CAPA administrator.'; - return &Apache::loncommon::simple_error_page($r,'Search Error', - $msg); + &Apache::loncommon::simple_error_page($r,'Search Error', + $msg); + return OK; } } } else { @@ -221,8 +222,9 @@ sub handler { # This is a stupid error to give to the user. # It really tells them nothing. my $msg = 'Unable to tie hash to db file.'; - return &Apache::loncommon::simple_error_page($r,'Search Error', - $msg); + &Apache::loncommon::simple_error_page($r,'Search Error', + $msg); + return OK; } } ## @@ -363,16 +365,18 @@ END my $msg = 'Unable to create table in which to store search results. '. 'The search has been aborted.'; - return &Apache::loncommon::simple_error_page($r,'Search Error', - $msg); + &Apache::loncommon::simple_error_page($r,'Search Error', + $msg); + return OK; } delete($env{'form.launch'}); if (! &make_form_data_persistent($r,$persistent_db_file)) { my $msg= 'Unable to properly store search information. '. 'The search has been aborted.'; - return &Apache::loncommon::simple_error_page($r,'Search Error', - $msg); + &Apache::loncommon::simple_error_page($r,'Search Error', + $msg); + return OK; } ## ## Print out the frames interface