From c7decf70a2d11dc2e208a508a0e7503139ab18c9 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 2 Sep 2014 17:43:42 -0700 Subject: feed removal issue --- include/network.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/network.php') 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())); } -- cgit v1.2.3