From: Michael Date: Tue, 24 Sep 2019 21:51:08 +0000 (+0000) Subject: Fix notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=08f30e1769e0812398f0d6a82d0d43202ea5d035;p=friendica.git Fix notice --- diff --git a/mod/redir.php b/mod/redir.php index 7c93c9f39a..1df7060fa6 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -148,7 +148,8 @@ function redir_magic($a, $cid, $url) Logger::info('Got my url', ['visitor' => $visitor]); } - if (empty(visitor) && remote_user()) { + /// @todo Most likely these lines are superfluous. We will remove them in the next version + if (empty($visitor) && remote_user()) { $contact = DBA::selectFirst('contact', ['url'], ['id' => remote_user()]); if (!empty($contact['url'])) { $visitor = $contact['url']; @@ -156,7 +157,7 @@ function redir_magic($a, $cid, $url) } } - if (empty(visitor) && local_user()) { + if (empty($visitor) && local_user()) { $contact = DBA::selectFirst('contact', ['url'], ['id' => local_user()]); if (!empty($contact['url'])) { $visitor = $contact['url'];