aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-02 17:43:42 -0700
committerfriendica <info@friendica.com>2014-09-02 17:43:42 -0700
commitc7decf70a2d11dc2e208a508a0e7503139ab18c9 (patch)
tree8a83b4f358e7b6b7faada6a59204514dee48aae5 /include/network.php
parent2c94d59cba0b3231b0dd822fc1b95bed5521c48d (diff)
downloadvolse-hubzilla-c7decf70a2d11dc2e208a508a0e7503139ab18c9.tar.gz
volse-hubzilla-c7decf70a2d11dc2e208a508a0e7503139ab18c9.tar.bz2
volse-hubzilla-c7decf70a2d11dc2e208a508a0e7503139ab18c9.zip
feed removal issue
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php
index 77c1550ba..5ca60b5fe 100644
--- a/include/network.php
+++ b/include/network.php
@@ -896,11 +896,13 @@ function discover_by_url($url,$arr = null) {
if($item) {
$author = $item->get_author();
if($author) {
- $name = trim(unxmlify($author->get_name()));
- if(! $name)
- $name = trim(unxmlify($author->get_email()));
- if(strpos($name,'@') !== false)
- $name = substr($name,0,strpos($name,'@'));
+ if(! $name) {
+ $name = trim(unxmlify($author->get_name()));
+ if(! $name)
+ $name = trim(unxmlify($author->get_email()));
+ if(strpos($name,'@') !== false)
+ $name = substr($name,0,strpos($name,'@'));
+ }
if(! $profile && $author->get_link())
$profile = trim(unxmlify($author->get_link()));
}