Suppress undefined index nickname notice in Model\Profile::sidebar

This commit is contained in:
Hypolite Petovan 2019-06-12 15:34:56 -04:00
parent b9dba631aa
commit b6e93c83fc
1 changed files with 3 additions and 1 deletions

View File

@ -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);