Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r22332: LJSUP-12662: Need condition for ratings ...

Committer: amyshkin
LJSUP-12662: Need condition for ratings template 'rating_posts.tmpl'
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2012-06-26 13:07:59 UTC (rev 22331)
+++ trunk/cgi-bin/LJ/Talk.pm	2012-06-26 13:53:01 UTC (rev 22332)
@@ -2549,7 +2549,7 @@
 
     $count = $dbcr->selectrow_array("SELECT replycount FROM log2 WHERE " .
                                     "journalid=? AND jitemid=?", undef,
-                                    $ju->{'userid'}, $jitemid);
+                                    $ju->{'userid'}, $jitemid) || 0;
     LJ::MemCache::add($memkey, $count);
     return $count;
 }

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