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
parent 1248b26d3c
commit d3391e12e3
7 changed files with 23 additions and 16 deletions
+5 -3
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);
}