mirror of
https://github.com/friendica/friendica
synced 2025-04-26 14:30:13 +00:00
Coding convention:
- added curly braces - added space between "if" and brace Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
5a90e7f822
commit
a5e4882e25
11 changed files with 85 additions and 53 deletions
|
@ -229,13 +229,16 @@ function profile_sidebar($profile, $block = 0) {
|
|||
|
||||
// Is the local user already connected to that user?
|
||||
if ($connect AND local_user()) {
|
||||
if (isset($profile["url"]))
|
||||
if (isset($profile["url"])) {
|
||||
$profile_url = normalise_link($profile["url"]);
|
||||
else
|
||||
}
|
||||
else {
|
||||
$profile_url = normalise_link(App::get_baseurl()."/profile/".$profile["nickname"]);
|
||||
}
|
||||
|
||||
$r = q("SELECT * FROM `contact` WHERE NOT `pending` AND `uid` = %d AND `nurl` = '%s'",
|
||||
local_user(), $profile_url);
|
||||
|
||||
if (dbm::is_result($r))
|
||||
$connect = false;
|
||||
}
|
||||
|
@ -684,8 +687,9 @@ function advanced_profile(&$a) {
|
|||
$profile['forumlist'] = array( t('Forums:'), ForumManager::profile_advanced($uid));
|
||||
}
|
||||
|
||||
if ($a->profile['uid'] == local_user())
|
||||
if ($a->profile['uid'] == local_user()) {
|
||||
$profile['edit'] = array(App::get_baseurl(). '/profiles/'.$a->profile['id'], t('Edit profile'),"", t('Edit profile'));
|
||||
}
|
||||
|
||||
return replace_macros($tpl, array(
|
||||
'$title' => t('Profile'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue