Committer: vad
LJSUP-9964: Error when viewing a journalU trunk/htdocs/talkread.bml
Modified: trunk/htdocs/talkread.bml =================================================================== --- trunk/htdocs/talkread.bml 2011-09-30 03:57:33 UTC (rev 20179) +++ trunk/htdocs/talkread.bml 2011-09-30 04:01:43 UTC (rev 20180) @@ -307,7 +307,7 @@ # make the title { - my $subject = $item->{'subject'} || $entry->subject; + my $subject = $item->{'subject'} || ($entry ? $entry->subject_text : ''); $subject = $subject || $event; # yes, the 3 param to text_trim is chars, and length returns bytes, but # it works, as bytes >= chars: @@ -491,7 +491,7 @@ $ret .= $sec; ### - if ($item->{'subject'} || $entry->subject) { + if ($item->{'subject'} || $entry->subject_text) { my $subject = $item->{'subject'} || $entry->subject; if ($GET{'nohtml'}) { # quote all non-LJ tags