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) {
|
||||
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