vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17379: LJSV-1190: added more accurate check of ...

Committer: vsukhanov
LJSV-1190: added more accurate check of pingback user options.
U   trunk/cgi-bin/LJ/Hooks/PingBack.pm
Modified: trunk/cgi-bin/LJ/Hooks/PingBack.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/PingBack.pm	2010-09-15 08:18:54 UTC (rev 17378)
+++ trunk/cgi-bin/LJ/Hooks/PingBack.pm	2010-09-15 08:51:39 UTC (rev 17379)
@@ -121,7 +121,7 @@
 =cut
 
     my $poster = $entry->poster;
-    my $prop_pingback = $poster ? $poster->prop('pingback') : 'O';
+    my $prop_pingback = ($poster && $poster->prop('pingback')) ? $poster->prop('pingback') : 'O';
     #
     LJ::PingBack->notify(
         uri  => $entry->url,

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