mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:40:16 +00:00
Suppress undefined index nickname notice in Model\Profile::sidebar
This commit is contained in:
parent
b9dba631aa
commit
b6e93c83fc
1 changed files with 3 additions and 1 deletions
|
@ -369,7 +369,9 @@ class Profile
|
|||
|
||||
if (!$local_user_is_self && $show_connect) {
|
||||
if (!$visitor_is_authenticated) {
|
||||
$follow_link = 'dfrn_request/' . $profile['nickname'];
|
||||
if (!empty($profile['nickname'])) {
|
||||
$follow_link = 'dfrn_request/' . $profile['nickname'];
|
||||
}
|
||||
} elseif ($profile_is_native) {
|
||||
if ($visitor_is_following) {
|
||||
$unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url);
|
||||
|
|
Loading…
Reference in a new issue