https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c93db4
)
Use accessing function for session variable
author
Dean Townsley
<dean@townsley.com>
Sun, 9 Jun 2019 01:24:51 +0000
(20:24 -0500)
committer
Dean Townsley
<dean@townsley.com>
Mon, 10 Jun 2019 02:06:42 +0000
(21:06 -0500)
src/Util/Security.php
patch
|
blob
|
history
diff --git
a/src/Util/Security.php
b/src/Util/Security.php
index
90e90d8
..
1c934d6
100644
(file)
--- 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;
}
}