From 19e99f7e8198fd74c5cd6bff19b361b09c3408af Mon Sep 17 00:00:00 2001 From: Dean Townsley Date: Sat, 8 Jun 2019 20:24:51 -0500 Subject: [PATCH] Use accessing function for session variable --- src/Util/Security.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Util/Security.php b/src/Util/Security.php index 90e90d8508..1c934d6fe6 100644 --- a/src/Util/Security.php +++ b/src/Util/Security.php @@ -122,12 +122,10 @@ class Security extends BaseObject if (!$remote_verified) { $cid = 0; - if (!empty($_SESSION['remote'])) { - foreach ($_SESSION['remote'] as $visitor) { - if ($visitor['uid'] == $owner_id) { - $cid = $visitor['cid']; - break; - } + foreach (\Friendica\Core\Session::get('remote', []) as $visitor) { + if ($visitor['uid'] == $owner_id) { + $cid = $visitor['cid']; + break; } } -- 2.39.5