vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r20180: LJSUP-9964: Error when viewing a journal...

Committer: vad
LJSUP-9964: Error when viewing a journal
U   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

Tags: bml, livejournal, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments