From: Hypolite Petovan Date: Wed, 12 Jun 2019 19:34:56 +0000 (-0400) Subject: Suppress undefined index nickname notice in Model\Profile::sidebar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6e93c83fc9a093c3c87c91440a1f8c65f3e0b3b;p=friendica.git Suppress undefined index nickname notice in Model\Profile::sidebar --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 765fed791a..4bb886814d 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -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);