aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/Contact.php2
-rw-r--r--include/network.php12
2 files changed, 8 insertions, 6 deletions
diff --git a/include/Contact.php b/include/Contact.php
index a9e737bde..0590f9d1e 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -484,7 +484,7 @@ function contact_remove($channel_id, $abook_id) {
);
if($r) {
foreach($r as $rr) {
- drop_item($rr,false);
+ drop_item($rr['id'],false);
}
}
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()));
}