]> git.mxchange.org Git - friendica.git/commitdiff
normal comparison
authorPhilipp Holzer <admin+github@philipp.info>
Thu, 30 May 2019 11:38:00 +0000 (13:38 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Thu, 30 May 2019 11:38:00 +0000 (13:38 +0200)
mod/redir.php

index 0e93a63fc293ba8ab6e3c8ad02f9384ea4ca7537..233ec9b0079ff59a65d2b033eeda318f836ebd31 100644 (file)
@@ -72,8 +72,8 @@ function redir_init(App $a) {
                        {
                                foreach ($_SESSION['remote'] as $v) {
                                        if (!empty($v['uid']) && !empty($v['cid']) &&
-                                           $v['uid'] === Session::get('visitor_visiting') &&
-                                           $v['cid'] === Session::get('visitor_id')) {
+                                           $v['uid'] == Session::get('visitor_visiting') &&
+                                           $v['cid'] == Session::get('visitor_id')) {
                                                // Remote user is already authenticated.
                                                $target_url = defaults($url, $contact_url);
                                                Logger::log($contact['name'] . " is already authenticated. Redirecting to " . $target_url, Logger::DEBUG);