diff options
author | zottel <github@zottel.net> | 2012-05-23 18:25:58 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-05-23 18:25:58 +0200 |
commit | 3aa516ccabc9bb09ae30ffa2d3657fba36699ea9 (patch) | |
tree | 93cd7fe6c2b9b0cc5851cb8324b5f6591d990f7f /include/socgraph.php | |
parent | e9c86c0fd0fb87b49e60669e6d4be810ca426ec4 (diff) | |
parent | 61dba985c14ebcfd20d18b579aee9b781f98bc23 (diff) | |
download | volse-hubzilla-3aa516ccabc9bb09ae30ffa2d3657fba36699ea9.tar.gz volse-hubzilla-3aa516ccabc9bb09ae30ffa2d3657fba36699ea9.tar.bz2 volse-hubzilla-3aa516ccabc9bb09ae30ffa2d3657fba36699ea9.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/socgraph.php')
-rw-r--r-- | include/socgraph.php | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/include/socgraph.php b/include/socgraph.php index 592779089..eccb133cc 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -71,20 +71,24 @@ function poco_load($cid,$uid = 0,$zcid = 0,$url = null) { $name = $entry->displayName; - foreach($entry->urls as $url) { - if($url->type == 'profile') { - $profile_url = $url->value; - continue; - } - if($url->type == 'webfinger') { - $connect_url = str_replace('acct:' , '', $url->value); - continue; + if(isset($entry->urls)) { + foreach($entry->urls as $url) { + if($url->type == 'profile') { + $profile_url = $url->value; + continue; + } + if($url->type == 'webfinger') { + $connect_url = str_replace('acct:' , '', $url->value); + continue; + } } - } - foreach($entry->photos as $photo) { - if($photo->type == 'profile') { - $profile_photo = $photo->value; - continue; + } + if(isset($entry->photos)) { + foreach($entry->photos as $photo) { + if($photo->type == 'profile') { + $profile_photo = $photo->value; + continue; + } } } |