diff options
author | Eric Wong <e@yhbt.net> | 2020-04-03 05:06:59 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-03 21:44:46 +0000 |
commit | fc92ce8845ac5f09939722537624fa48441f7c0b (patch) | |
tree | 55f713c722e1b9dcea20a28a3cde98ef8dbb3c34 /lib/PublicInbox/View.pm | |
parent | 150acb76fe824283ee41dcccc263eb38195d7ebd (diff) | |
download | public-inbox-fc92ce8845ac5f09939722537624fa48441f7c0b.tar.gz |
There may be no topics for a given timestamp range, so don't attempt to treat `undef' as an arrayref.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 89174296..c42654b6 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -1056,7 +1056,7 @@ sub acc_topic { # walk_thread callback sub dump_topics { my ($ctx) = @_; my $order = delete $ctx->{order}; # [ ds, subj1, subj2, subj3, ... ] - if (!@$order) { + unless ($order) { $ctx->{-html_tip} = '<pre>[No topics in range]</pre>'; return 404; } |