]> git.mxchange.org Git - friendica.git/commitdiff
fb contacts getting mixed up.
authorFriendika <info@friendika.com>
Mon, 23 May 2011 04:47:22 +0000 (21:47 -0700)
committerFriendika <info@friendika.com>
Mon, 23 May 2011 04:47:22 +0000 (21:47 -0700)
addon/facebook/facebook.php

index 9410b73dc9f552baf68171c98de70381ab3619a2..eba9d04b93b807e4b1b3b5507a1f3168ae48450b 100644 (file)
@@ -700,13 +700,17 @@ function fb_consume_stream($uid,$j,$wall = false) {
                        );                      
                        if(count($r))
                                $orig_post = $r[0];
-
                }
 
                if(isset($entry->likes) && isset($entry->likes->data))
                        $likers = $entry->likes->data;
+               else
+                       $likers = null;
+
                if(isset($entry->comments) && isset($entry->comments->data))
                        $comments = $entry->comments->data;
+               else
+                       $comments = null;
 
                if(is_array($likers)) {
                        foreach($likers as $likes) {