X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FSearchView.pm;h=07fef40ccccc42b34f46da8c83add5bbf1d79a72;hb=1e0709d33ca040b8b1ac6b84e5b07a4cee3a6ced;hp=aeee2a2adf08fa5433b6cf0ae8dbbf7b0e0aa61d;hpb=11cd89ced627f25e4d5065641097d734f67dfb70;p=public-inbox.git diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index aeee2a2a..07fef40c 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -34,7 +34,7 @@ sub sres_top_html { return PublicInbox::WWW::need($ctx, 'Search'); my $q = PublicInbox::SearchQuery->new($ctx->{qp}); my $x = $q->{x}; - my $o = $q->{o}; + my $o = $q->{o} // 0; my $asc; if ($o < 0) { $asc = 1; @@ -82,7 +82,7 @@ retry: mset_summary($ctx, $mset, $q); # appends to {-html_tip} $html = ''; } - html_oneshot($ctx, $code); + html_oneshot($ctx, $code, $html); } # display non-nested search results similar to what users expect from