added spaces + curly braces

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 11:36:03 +01:00
commit c86f09a894
7 changed files with 23 additions and 16 deletions

View file

@ -63,12 +63,14 @@ function redir_init(App &$a) {
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest . $quiet );
}
if(local_user())
if (local_user()) {
$handle = $a->user['nickname'] . '@' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'://')+3);
if(remote_user())
}
if (remote_user()) {
$handle = $_SESSION['handle'];
}
if($url) {
if ($url) {
$url = str_replace('{zid}','&zid=' . $handle,$url);
goaway($url);
}