Use accessing function for session variable
This commit is contained in:
parent
5c93db4097
commit
19e99f7e81
|
@ -122,14 +122,12 @@ class Security extends BaseObject
|
||||||
if (!$remote_verified) {
|
if (!$remote_verified) {
|
||||||
$cid = 0;
|
$cid = 0;
|
||||||
|
|
||||||
if (!empty($_SESSION['remote'])) {
|
foreach (\Friendica\Core\Session::get('remote', []) as $visitor) {
|
||||||
foreach ($_SESSION['remote'] as $visitor) {
|
|
||||||
if ($visitor['uid'] == $owner_id) {
|
if ($visitor['uid'] == $owner_id) {
|
||||||
$cid = $visitor['cid'];
|
$cid = $visitor['cid'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($cid && DBA::exists('contact', ['id' => $cid, 'uid' => $owner_id, 'blocked' => false])) {
|
if ($cid && DBA::exists('contact', ['id' => $cid, 'uid' => $owner_id, 'blocked' => false])) {
|
||||||
$remote_verified = true;
|
$remote_verified = true;
|
||||||
|
|
Loading…
Reference in a new issue