From: Michael Date: Thu, 31 Aug 2017 12:10:17 +0000 (+0000) Subject: Small correction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88fb02db8d830d8a74cd0aed67ee52f41a2151ab;p=friendica.git Small correction --- diff --git a/mod/redir.php b/mod/redir.php index 6d3ffb2224..998e9cc0bd 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -21,9 +21,12 @@ function redir_init(App $a) { intval(local_user()) ); - if (!dbm::is_result($r) || ($r[0]['network'] !== NETWORK_DFRN)) + if (!dbm::is_result($r)) { goaway(System::baseUrl()); - + } + if ($r[0]['network'] !== NETWORK_DFRN) { + goaway(($url != '' ? $url : $r[0]['url'])); + } $cid = $r[0]['id']; } else { $cid = $a->argv[1]; @@ -37,7 +40,7 @@ function redir_init(App $a) { goaway(System::baseUrl()); } if ($r[0]['network'] !== NETWORK_DFRN) { - goaway($r[0]['url']); + goaway(($url != '' ? $url : $r[0]['url'])); } }