wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17543: LJSUP-7105. Minor fix.

Committer: gprochaev
LJSUP-7105. Minor fix.

U   trunk/cgi-bin/LJ/Event/JournalNewComment.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewComment.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2010-10-12 03:27:35 UTC (rev 17542)
+++ trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2010-10-12 03:35:03 UTC (rev 17543)
@@ -225,7 +225,9 @@
 
     my $msg;
 
-    my $lang = $self->comment->parent->poster ? $self->comment->parent->poster->prop('browselang') : $LJ::DEFAULT_LANG;
+    my $lang = $self->comment->parent && $self->comment->parent->poster
+               ? $self->comment->parent->poster->prop('browselang')
+               : $LJ::DEFAULT_LANG;
     if ($self->event_journal->journaltype eq 'C') {
         if ($self->comment->parent) {
             if ($edited) {

Tags: livejournal, pm, wisest-owl
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