Bugfix for "1" instead of "connect"
This commit is contained in:
parent
417ea99ba5
commit
2ecd5a55b7
1 changed files with 3 additions and 1 deletions
|
@ -245,7 +245,9 @@ function profile_sidebar($profile, $block = 0) {
|
||||||
$profile_url = normalise_link(App::get_baseurl()."/profile/".$profile["nickname"]);
|
$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']))
|
if ($connect && ($profile['network'] != NETWORK_DFRN) && !isset($profile['remoteconnect']))
|
||||||
|
|
Loading…
Reference in a new issue