vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r20328: LJSUP-10147: Implement abstract interace...

Committer: vad
LJSUP-10147: Implement abstract interace for access to friends relations
U   trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
Modified: trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
===================================================================
--- trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2011-10-14 13:24:25 UTC (rev 20327)
+++ trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2011-10-14 13:32:19 UTC (rev 20328)
@@ -49,8 +49,7 @@
                         limit     => $limit, 
                         nogearman => $nogearman,
                         );
-    return undef unless $friends;
-    return @$friends;
+    return $friends;
 }
 
 ## friendofs rows
@@ -66,8 +65,7 @@
                         limit     => $limit, 
                         nogearman => $nogearman,
                         );
-    return undef unless $friendofs;
-    return @$friendofs;
+    return $friendofs;
 
 }
 

Tags: livejournal, pm, vad, vadvs
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