about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-14 10:21:12 +0000
committerEric Wong <e@80x24.org>2016-08-14 10:23:55 +0000
commit2b4bbe3857ab1a4dd194612018029c5511505cba (patch)
treec92e4b52b920e6ab3919ded27aabf85e082ac67e
parent04ba9f9f26e15989944baa0204072f54c00d781f (diff)
downloadpublic-inbox-2b4bbe3857ab1a4dd194612018029c5511505cba.tar.gz
Because buggy mail clients exist and generate invalid
In-Reply-To headers we cannot handle across the board...
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index ed3c96e8..373545a2 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -208,8 +208,8 @@ sub _th_index_lite {
         my $nr_s = 0;
         my $level = $map->[4];
         my $idx = $map->[3];
-        if (defined $irt) {
-                my $irt_map = $mapping->{$irt};
+        my $irt_map = $mapping->{$irt} if defined $irt;
+        if (defined $irt_map) {
                 my $siblings = $irt_map->[0];
                 $nr_s = scalar(@$siblings) - 1;
                 $rv .= $pad . $irt_map->[1];