diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-08-26 14:44:24 +0200 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2011-08-26 14:44:24 +0200 |
commit | 5ec4a4e6deb5d28cbfab54093f8b4180912738d4 (patch) | |
tree | 653cb4738734d9f20bd1457c419105dcf235edea /addon/facebook/facebook.php | |
parent | 97806544bcd7ee3831ffc515062afe0812828b76 (diff) | |
parent | 1861dc1fae549a0ee2b6287d4f7dc7f8797f5070 (diff) | |
download | volse-hubzilla-5ec4a4e6deb5d28cbfab54093f8b4180912738d4.tar.gz volse-hubzilla-5ec4a4e6deb5d28cbfab54093f8b4180912738d4.tar.bz2 volse-hubzilla-5ec4a4e6deb5d28cbfab54093f8b4180912738d4.zip |
Merge remote-tracking branch 'friendika/master' into newui
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index ed59daff6..33895f80d 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -151,6 +151,8 @@ function fb_get_friends($uid) { logger('facebook: fb_get_friends: ' . $s, LOGGER_DATA); $j = json_decode($s); logger('facebook: fb_get_friends: json: ' . print_r($j,true), LOGGER_DATA); + if(! $j->data) + return; foreach($j->data as $person) { $s = fetch_url('https://graph.facebook.com/' . $person->id . '?access_token=' . $access_token); if($s) { |