Suppress undefined index nickname notice in Model\Profile::sidebar
This commit is contained in:
parent
b9dba631aa
commit
b6e93c83fc
|
@ -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) {
|
||||||
$follow_link = 'dfrn_request/' . $profile['nickname'];
|
if (!empty($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);
|
||||||
|
|
Loading…
Reference in a new issue