Browse Source

Use accessing function for session variable

pull/7237/head
Dean Townsley 3 years ago
parent
commit
19e99f7e81
  1. 10
      src/Util/Security.php

10
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;
}
}

Loading…
Cancel
Save