diff --git a/include/identity.php b/include/identity.php index 34c0413df0..bc18319b2d 100644 --- a/include/identity.php +++ b/include/identity.php @@ -245,7 +245,9 @@ function profile_sidebar($profile, $block = 0) { $profile_url = normalise_link(App::get_baseurl()."/profile/".$profile["nickname"]); } - $connect = !dba::exists('contact', array('pending' => false, 'uid' => local_user(), 'nurl' => $profile_url)); + if (dba::exists('contact', array('pending' => false, 'uid' => local_user(), 'nurl' => $profile_url))) { + $connect = false; + } } if ($connect && ($profile['network'] != NETWORK_DFRN) && !isset($profile['remoteconnect']))