about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-03 05:06:59 +0000
committerEric Wong <e@yhbt.net>2020-04-03 21:44:46 +0000
commitfc92ce8845ac5f09939722537624fa48441f7c0b (patch)
tree55f713c722e1b9dcea20a28a3cde98ef8dbb3c34 /lib
parent150acb76fe824283ee41dcccc263eb38195d7ebd (diff)
downloadpublic-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')
-rw-r--r--lib/PublicInbox/View.pm2
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;
         }