--- loncom/interface/lonsearchcat.pm 2005/11/29 20:25:44 1.248 +++ loncom/interface/lonsearchcat.pm 2005/12/29 19:45:19 1.250 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.248 2005/11/29 20:25:44 www Exp $ +# $Id: lonsearchcat.pm,v 1.250 2005/12/29 19:45:19 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2291,7 +2291,7 @@ sub update_status { } { - my $max_time = 40; # seconds for the search to complete + my $max_time = 300; # seconds for the search to complete my $start_time = 0; my $last_time = 0; @@ -2790,7 +2790,7 @@ sub display_results { exists($sort_fields{$env{'form.sortfield'}})) { $sort_command = $env{'form.sortfield'}.' IS NOT NULL '. 'ORDER BY '.$env{'form.sortfield'}.' '.$order. - ' LIMIT '.($min-1).','.($max-$min); + ' LIMIT '.($min-1).','.($max-$min+1); } my @Results = &Apache::lonmysql::get_rows($table,$sort_command); ##