From: Friendika Date: Mon, 23 May 2011 04:47:22 +0000 (-0700) Subject: fb contacts getting mixed up. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ea145fae7defaf959b04797afc8482bd0190352;p=friendica.git fb contacts getting mixed up. --- diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 9410b73dc9..eba9d04b93 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -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) {