madeon wrote in 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;
     }