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;