]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Merge pull request #6225 from annando/http-error
[friendica.git] / mod / redir.php
index f22af545f7bbe1b9d4809773911c9910082277d1..9f579a9dc445f3657fb2a3b6e2b249713d2174f3 100644 (file)
@@ -43,7 +43,7 @@ function redir_init(App $a) {
 
                if ($contact['uid'] == 0 && local_user()) {
                        // Let's have a look if there is an established connection
-                       // between the puplic contact we have found and the local user.
+                       // between the public contact we have found and the local user.
                        $contact = DBA::selectFirst('contact', $fields, ['nurl' => $contact['nurl'], 'uid' => local_user()]);
 
                        if (DBA::isResult($contact)) {
@@ -67,7 +67,7 @@ function redir_init(App $a) {
                        // for authentification everytime he/she is visiting a profile page of the local
                        // contact.
                        if ($host == $remotehost
-                               && x($_SESSION, 'remote')
+                               && !empty($_SESSION['remote'])
                                && is_array($_SESSION['remote']))
                        {
                                foreach ($_SESSION['remote'] as $v) {