журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r23204: LJSUP-13931: Implement interaction with ...

Committer: nnikulochkina
LJSUP-13931: Implement interaction with rating system
U   trunk/cgi-bin/LJ/MemCacheProxy.pm
Modified: trunk/cgi-bin/LJ/MemCacheProxy.pm
===================================================================
--- trunk/cgi-bin/LJ/MemCacheProxy.pm	2012-10-26 11:08:38 UTC (rev 23203)
+++ trunk/cgi-bin/LJ/MemCacheProxy.pm	2012-10-26 12:44:48 UTC (rev 23204)
@@ -55,8 +55,7 @@
 sub delete {
     my ($key_origin) = @_;
 
-    my $key = $key_origin->[1]
-        if ref $key_origin eq 'ARRAY';
+    my $key = ref $key_origin eq 'ARRAY' ? $key_origin->[1] : $key_origin;
 
     delete $singletons{$key};
     LJ::MemCache::delete($key_origin);

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