normal comparison

This commit is contained in:
Philipp Holzer 2019-05-30 13:38:00 +02:00
parent e4a63bc219
commit aa33a79e13
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View 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);