--- branches/tehnika/WebPac.pm 2005/02/16 00:04:24 669 +++ branches/tehnika/WebPac.pm 2005/02/16 00:28:54 671 @@ -148,7 +148,7 @@ foreach my $p (@{$pager->pages_in_set()}) { - next if ($p < 0); + next if ($p <= 0); if($p == $pager->current_page()) { $pager_jump .= "$p "; } else { @@ -328,7 +328,7 @@ push @s_arr, $q->param("f$i")."_swish".$exact."=(".join(" or ",@swish_q).")"; } - my $tmpl = $self->load_tmpl(url_ex($q,'results.html'), global_vars => 1); + my $tmpl = $self->load_tmpl(url_ex($q,'results.html'), global_vars => 1, die_on_bad_params => 0); $tmpl->param('url_params',"?".join("&",@url_params)); @@ -469,7 +469,7 @@ return $html; } - my $tmpl = $self->load_tmpl(url_ex($q,'index_res.html'), global_vars => 1); + my $tmpl = $self->load_tmpl(url_ex($q,'index_res.html'), global_vars => 1, die_on_bad_params => 0); $tmpl->param('field',$field); $tmpl->param('limit',$limit); $tmpl->param('total',$total);