alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r21162: LJSUP-10900: Implement MessagePack proto...

Committer: afedorov
LJSUP-10900: Implement MessagePack protocol driver to access to Relation Service.

U   trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
Modified: trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
===================================================================
--- trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2012-02-10 14:17:42 UTC (rev 21161)
+++ trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2012-02-10 14:39:26 UTC (rev 21162)
@@ -41,7 +41,7 @@
     my $type  = shift;
     my %opts  = @_;
 
-    my $db = LJ::isdb($opts{db}) ? shift : undef;
+    my $db = LJ::isdb($opts{db}) ? $opts{db} : undef;
 
     my $userid = $u->userid;
     my $typeid = LJ::get_reluser_id($type)+0;
@@ -107,7 +107,7 @@
     my $type  = shift;
     my %opts  = @_;
 
-    my $db = LJ::isdb($opts{db}) ? shift : undef;
+    my $db = LJ::isdb($opts{db}) ? $opts{db} : undef;
 
     my $userid = $u->userid;
     my $typeid = LJ::get_reluser_id($type)+0;

Tags: afedorov, livejournal, pm, red_alf
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