]> git.mxchange.org Git - friendica.git/commitdiff
Avoid an empty handle
authorMichael Vogel <icarus@dabo.de>
Tue, 22 Mar 2016 06:13:56 +0000 (07:13 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 22 Mar 2016 06:13:56 +0000 (07:13 +0100)
include/diaspora.php

index 6f30ab9247a115b0468eab8f932dfe7b53b44707..632e3782c7d9981c245114beb110c25fb870a5fb 100644 (file)
@@ -647,7 +647,7 @@ class diaspora {
 
                        if($contact['addr'] != "")
                                $handle = $contact['addr'];
-                       elseif(($contact['network'] === NETWORK_DFRN) || ($contact['self'] == 1)) {
+                       else {
                                $baseurl_start = strpos($contact['url'],'://') + 3;
                                $baseurl_length = strpos($contact['url'],'/profile') - $baseurl_start; // allows installations in a subdirectory--not sure how Diaspora will handle
                                $baseurl = substr($contact['url'], $baseurl_start, $baseurl_length);