mirror of
https://github.com/friendica/friendica
synced 2024-12-24 02:00:15 +00:00
Avoid an empty handle
This commit is contained in:
parent
c284ab5eff
commit
90d4b93424
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ class diaspora {
|
||||||
|
|
||||||
if($contact['addr'] != "")
|
if($contact['addr'] != "")
|
||||||
$handle = $contact['addr'];
|
$handle = $contact['addr'];
|
||||||
elseif(($contact['network'] === NETWORK_DFRN) || ($contact['self'] == 1)) {
|
else {
|
||||||
$baseurl_start = strpos($contact['url'],'://') + 3;
|
$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_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);
|
$baseurl = substr($contact['url'], $baseurl_start, $baseurl_length);
|
||||||
|
|
Loading…
Reference in a new issue