madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23522: LJSUP-14751: return zero value from memc...

Committer: sbelyaev
LJSUP-14751: return zero value from memcache if repost does not exist
U   trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry/Repost.pm	2013-01-09 13:30:32 UTC (rev 23521)
+++ trunk/cgi-bin/LJ/Entry/Repost.pm	2013-01-10 07:54:31 UTC (rev 23522)
@@ -24,7 +24,7 @@
     my $memcache_key = "reposted_count:$journalid:$jitemid";
 
     my ($count) = LJ::MemCache::get($memcache_key);
-    if ($count) {
+    if (defined $count) {
         return $count;
     }
 

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