fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-13 01:49 am

[dw-free] clean up error logs

[commit: http://hg.dwscoalition.org/dw-free/rev/3d8b759e2c60]

http://bugs.dwscoalition.org/show_bug.cgi?id=2812

No entry for invalid comments, so let's short-circuit here.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Comment.pm
--------------------------------------------------------------------------------
diff -r 9dbb793b9516 -r 3d8b759e2c60 cgi-bin/LJ/Comment.pm
--- a/cgi-bin/LJ/Comment.pm	Fri Aug 13 09:36:17 2010 +0800
+++ b/cgi-bin/LJ/Comment.pm	Fri Aug 13 09:42:28 2010 +0800
@@ -351,7 +351,7 @@ sub jtalkid {
 
 sub dtalkid {
     my $self = shift;
-    my $entry = $self->entry;
+    my $entry = $self->entry or return undef;
     return ($self->jtalkid * 256) + $entry->anum;
 }
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org