diff options
author | Michael <icarus@dabo.de> | 2012-05-26 11:59:19 +0200 |
---|---|---|
committer | Michael <icarus@dabo.de> | 2012-05-26 11:59:19 +0200 |
commit | 7b3c02057db47a627b56bdd79f1055ea7f876617 (patch) | |
tree | 8c9b11fa72e544aea721f385b40bff7254e42ed2 /include/socgraph.php | |
parent | 6342b3e0bdd5774857a8fca809994f05e0208d25 (diff) | |
parent | f5290a5a107ef2d6c309c4a3205319c9b0d13994 (diff) | |
download | volse-hubzilla-7b3c02057db47a627b56bdd79f1055ea7f876617.tar.gz volse-hubzilla-7b3c02057db47a627b56bdd79f1055ea7f876617.tar.bz2 volse-hubzilla-7b3c02057db47a627b56bdd79f1055ea7f876617.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; + } } } |