mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
added curly braces + fixed indenting according to code review by Hypolite
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
c30647e15e
commit
bc9cb5e5f6
5 changed files with 42 additions and 43 deletions
|
@ -111,10 +111,8 @@ function profile_content(&$a, $update = 0) {
|
|||
if ($update) {
|
||||
// Ensure we've got a profile owner if updating.
|
||||
$a->profile['profile_uid'] = $update;
|
||||
} else {
|
||||
if ($a->profile['profile_uid'] == local_user()) {
|
||||
nav_set_selected('home');
|
||||
}
|
||||
} elseif ($a->profile['profile_uid'] == local_user()) {
|
||||
nav_set_selected('home');
|
||||
}
|
||||
|
||||
$contact = null;
|
||||
|
@ -158,12 +156,12 @@ function profile_content(&$a, $update = 0) {
|
|||
}
|
||||
|
||||
if (! $update) {
|
||||
if (x($_GET,'tab'))
|
||||
if (x($_GET,'tab')) {
|
||||
$tab = notags(trim($_GET['tab']));
|
||||
}
|
||||
|
||||
$o.=profile_tabs($a, $is_owner, $a->profile['nickname']);
|
||||
|
||||
|
||||
if ($tab === 'profile') {
|
||||
$o .= advanced_profile($a);
|
||||
call_hooks('profile_advanced',$o);
|
||||
|
@ -201,14 +199,12 @@ function profile_content(&$a, $update = 0) {
|
|||
|
||||
$o .= status_editor($a,$x);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups
|
||||
*/
|
||||
|
||||
$sql_extra = item_permissions_sql($a->profile['profile_uid'],$remote_contact,$groups);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue