mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 13:23:40 +00:00
invalid foreach
This commit is contained in:
parent
431c402719
commit
6256c4e48e
1 changed files with 6 additions and 4 deletions
|
@ -383,6 +383,7 @@ function fb_get_friends_sync_full($uid, $access_token, $persons) {
|
||||||
if($s) {
|
if($s) {
|
||||||
$results = json_decode($s);
|
$results = json_decode($s);
|
||||||
logger('fb_get_friends: info: ' . print_r($results,true), LOGGER_DATA);
|
logger('fb_get_friends: info: ' . print_r($results,true), LOGGER_DATA);
|
||||||
|
if(count($results)) {
|
||||||
foreach ($results as $contact) {
|
foreach ($results as $contact) {
|
||||||
if ($contact->code != 200) logger('fb_get_friends: not found: ' . print_r($contact,true), LOGGER_DEBUG);
|
if ($contact->code != 200) logger('fb_get_friends: not found: ' . print_r($contact,true), LOGGER_DEBUG);
|
||||||
else fb_get_friends_sync_parsecontact($uid, json_decode($contact->body));
|
else fb_get_friends_sync_parsecontact($uid, json_decode($contact->body));
|
||||||
|
@ -390,6 +391,7 @@ function fb_get_friends_sync_full($uid, $access_token, $persons) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue