X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fprofperm.php;h=a414d8947bf35369a819b9966239585468889b59;hb=221cfa8c22b724228ed24618569cabcae582d331;hp=1c37f84ab2fca78f9703d2c74ac9075d7eeee380;hpb=ff569756ee6c5e058700cf6428918f059525e77c;p=friendica.git diff --git a/mod/profperm.php b/mod/profperm.php index 1c37f84ab2..a414d8947b 100644 --- a/mod/profperm.php +++ b/mod/profperm.php @@ -1,9 +1,10 @@ user['nickname']; $profile = $a->argv[1]; @@ -13,9 +14,9 @@ function profperm_init(&$a) { } -function profperm_content(&$a) { +function profperm_content(App $a) { - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied') . EOL); return; } @@ -52,7 +53,7 @@ function profperm_content(&$a) { intval($a->argv[1]), intval(local_user()) ); - if(! dbm::is_result($r)) { + if (! dbm::is_result($r)) { notice( t('Invalid profile identifier.') . EOL ); return; } @@ -108,9 +109,9 @@ function profperm_content(&$a) { } $o .= '
'; - if($change) + if($change) $o = ''; - + $o .= '
'; $o .= '

' . t('Visible To') . '

'; $o .= '
';