From: Michael Date: Thu, 24 Aug 2017 19:11:27 +0000 (+0000) Subject: Bugfix for "1" instead of "connect" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ecd5a55b79f6eff65a9855b83a3382319693f3d;p=friendica.git Bugfix for "1" instead of "connect" --- 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']))