From: Dean Townsley Date: Sun, 9 Jun 2019 01:24:51 +0000 (-0500) Subject: Use accessing function for session variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19e99f7e8198fd74c5cd6bff19b361b09c3408af;p=friendica.git Use accessing function for session variable --- 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; } }