vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r12385: LJSUP-13165: remove warnings and errors ...

Committer: vad
LJSUP-13165: remove warnings and errors from log
U   trunk/htdocs/tools/endpoints/comments.bml
Modified: trunk/htdocs/tools/endpoints/comments.bml
===================================================================
--- trunk/htdocs/tools/endpoints/comments.bml	2012-07-31 15:24:40 UTC (rev 12384)
+++ trunk/htdocs/tools/endpoints/comments.bml	2012-07-31 19:29:38 UTC (rev 12385)
@@ -72,7 +72,7 @@
         unless ! $partner->rate_limits
             || LJ::RateLimit->check( $journal, $partner->rate_limits );
 
-    if ( $partner->send_hits_to_ratings ) {
+    if ( $partner->can('send_hits_to_ratings') and $partner->send_hits_to_ratings ) {
         if ( my $entry = $partner->find_entry_by_docid($docid) ) {
             push @LJ::SUP_LJ_ENTRY_REQ,
                 [ $journal->userid, $journal->userid, $entry->ditemid ];

Tags: bml, ljcom, vad, 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