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

View file

@ -369,7 +369,9 @@ class Profile
if (!$local_user_is_self && $show_connect) { if (!$local_user_is_self && $show_connect) {
if (!$visitor_is_authenticated) { if (!$visitor_is_authenticated) {
if (!empty($profile['nickname'])) {
$follow_link = 'dfrn_request/' . $profile['nickname']; $follow_link = 'dfrn_request/' . $profile['nickname'];
}
} elseif ($profile_is_native) { } elseif ($profile_is_native) {
if ($visitor_is_following) { if ($visitor_is_following) {
$unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url); $unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url);