Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21588: LJSUP-10900 (Implement MessagePack proto...

Committer: ailyin
LJSUP-10900 (Implement MessagePack protocol driver to access to Relation Service.)
U   trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
U   trunk/cgi-bin/ljrelation.pl
Modified: trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
===================================================================
--- trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2012-03-29 12:06:25 UTC (rev 21587)
+++ trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2012-03-29 12:11:35 UTC (rev 21588)
@@ -756,7 +756,7 @@
 
     # get data from db, force result to be {0|1}
     my $dbval = $db->selectrow_array("SELECT COUNT(*) FROM $table ".
-                                     "WHERE userid=? AND friendid=? AND type=? ",
+                                     "WHERE userid=? AND targetid=? AND type=? ",
                                      undef, $userid, $friendid, $eff_type)
         ? 1 : 0;
 

Modified: trunk/cgi-bin/ljrelation.pl
===================================================================
--- trunk/cgi-bin/ljrelation.pl	2012-03-29 12:06:25 UTC (rev 21587)
+++ trunk/cgi-bin/ljrelation.pl	2012-03-29 12:11:35 UTC (rev 21588)
@@ -281,7 +281,6 @@
 # </LJFUNC>
 sub check_rel
 {
-    my $class = shift;
     my ($userid, $targetid, $type) = @_;
     return undef unless $type && $userid && $targetid;
 

Tags: ailyin, andy, livejournal, pl, 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