]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix for "1" instead of "connect"
authorMichael <heluecht@pirati.ca>
Thu, 24 Aug 2017 19:11:27 +0000 (19:11 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 24 Aug 2017 19:11:27 +0000 (19:11 +0000)
include/identity.php

index 34c0413df0045d2bb572d4a96ebd02a0dd9779cd..bc18319b2d91c01718e71b4e72f188ef53732c0a 100644 (file)
@@ -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']))