From 2ecd5a55b79f6eff65a9855b83a3382319693f3d Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 24 Aug 2017 19:11:27 +0000 Subject: [PATCH] Bugfix for "1" instead of "connect" --- include/identity.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'])) -- 2.39.5