aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-22 21:20:31 -0700
committerfriendica <info@friendica.com>2012-05-22 21:20:31 -0700
commit3ac7c4e8599266aba69bf521c7ba94393df3c728 (patch)
treec4689d46b429d56024636ccad4094d70e2895e4e /include
parent0da20ec9ef443edd86119601e39c42f78dc1a52f (diff)
downloadvolse-hubzilla-3ac7c4e8599266aba69bf521c7ba94393df3c728.tar.gz
volse-hubzilla-3ac7c4e8599266aba69bf521c7ba94393df3c728.tar.bz2
volse-hubzilla-3ac7c4e8599266aba69bf521c7ba94393df3c728.zip
keep FB out of private notes
Diffstat (limited to 'include')
-rw-r--r--include/socgraph.php30
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;
+ }
}
}