1
1
Fork 0

Merge pull request #3652 from annando/missing-connect

Bugfix for "1" instead of "connect"
This commit is contained in:
Tobias Diekershoff 2017-08-25 09:45:40 +02:00 committed by GitHub
commit 8ac3cb6f66

View 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']))